CVE-2023-45827: @clickbar/dot diver Prototype Pollution(PP) Vulnerability Vulnerability
HIGHCVE-2023-45827 is a HIGH (CVSS 7.3) prototype pollution(pp) vulnerability vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @clickbar/dot diver libraries in the npm ecosystem. The issue involves prototype pollution(pp) vulnerability in setbypath. Remediation is available by upgrading affected packages to version 1.0.2.
CVE-2023-45827 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2023-45827
To remediate this vulnerability, upgrade all affected @clickbar/dot diver dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @clickbar/dot-diver@1.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @clickbar/dot-diver
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-45827, inspect your project dependencies using npm:
npm ls @clickbar/dot-diver
Analyze the terminal output to locate any version of @clickbar/dot diver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.2), your application is affected.
Note: The npm ls @clickbar/dot-diver command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In @clickbar/dot diver, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-45827 Affected @clickbar/dot diver Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@clickbar/dot-diver
|
npm |
< 1.0.2
|
1.0.2
|
References
Frequently Asked Questions
What is CVE-2023-45827?
Which @clickbar/dot diver versions are affected?
What version fixes CVE-2023-45827?
Is @clickbar/dot-diver affected?
What is the CVSS score of CVE-2023-45827?
What CWE is associated with CVE-2023-45827?
How can I check npm dependencies for CVE-2023-45827?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9w5f-mw3p-pj47",
"modified" : "2023-11-06T19:34:19Z",
"published" : "2023-11-03T19:03:40Z",
"aliases" : [ "CVE-2023-45827" ],
"summary" : "Prototype Pollution(PP) vulnerability in setByPath",
"details" : "### Summary\nThere is a Prototype Pollution(PP) vulnerability in dot-diver. It can leads to RCE.\n\n### Details\n```javascript\n//https://github.com/clickbar/dot-diver/tree/main/src/index.ts:277\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n objectToSet[lastKey] = value\n```\nIn this code, there is no validation for Prototpye Pollution.\n\n### PoC\n```javascript\nimport { getByPath, setByPath } from '@clickbar/dot-diver'\n\nconsole.log({}.polluted); // undefined\nsetByPath({},'constructor.prototype.polluted', 'foo');\nconsole.log({}.polluted); // foo\n```\n\n### Impact\nIt is Prototype Pollution(PP) and it can leads to Dos, RCE, etc.\n\n### Credits\nTeam : NodeBoB\n\n최지혁 ( Jihyeok Choi )\n\n이동하 ( Lee Dong Ha of ZeroPointer Lab )\n\n강성현 ( kang seonghyeun )\n\n박성진 ( sungjin park )\n\n김찬호 ( Chanho Kim )\n\n이수영 ( Lee Su Young )\n\n김민욱 ( MinUk Kim )\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@clickbar/dot-diver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/clickbar/dot-diver/security/advisories/GHSA-9w5f-mw3p-pj47"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-45827"
}, {
"type" : "WEB",
"url" : "https://github.com/clickbar/dot-diver/commit/9790834cf4c2bca75db00e588e58056dacaf602f"
}, {
"type" : "WEB",
"url" : "https://github.com/clickbar/dot-diver/commit/98daf567390d816fd378ec998eefe2e97f293d5a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/clickbar/dot-diver"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-03T19:03:40Z",
"nvd_published_at" : "2023-11-06T18:15:08Z"
}
}