CVE-2019-10745: Assign deep Assign-deep Vulnerable To Prototype Pollution Vulnerability
HIGHCVE-2019-10745 is a HIGH (CVSS 7.5) assign-deep vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Assign deep libraries in the npm ecosystem. The issue involves assign-deep vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 0.4.8, 1.0.1.
CVE-2019-10745 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2019-10745
To remediate this vulnerability, upgrade all affected Assign deep 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 assign-deep@0.4.8
npm install assign-deep@1.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls assign-deep
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-10745, inspect your project dependencies using npm:
npm ls assign-deep
Analyze the terminal output to locate any version of Assign deep in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.8), your application is affected.
Note: The npm ls assign-deep 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 Assign deep, 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-2019-10745 Affected Assign deep Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
assign-deep
|
npm |
< 0.4.8
|
0.4.8
|
|
assign-deep
|
npm |
≥ 1.0.0
< 1.0.1
All 1 versions
1.0.0
|
1.0.1
|
References
Frequently Asked Questions
What is CVE-2019-10745?
Which Assign deep versions are affected?
What version fixes CVE-2019-10745?
Is assign-deep affected?
What is the CVSS score of CVE-2019-10745?
What CWE is associated with CVE-2019-10745?
How can I check npm dependencies for CVE-2019-10745?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-66rh-8fw6-59q6",
"modified" : "2022-08-03T16:21:27Z",
"published" : "2019-08-21T16:15:13Z",
"aliases" : [ "CVE-2019-10745" ],
"summary" : "assign-deep Vulnerable to Prototype Pollution",
"details" : "Versions of `assign-deep` prior to 1.0.1 and 0.4.8 are vulnerable to Prototype Pollution. The `assign` function fails to validate which Object properties it updates. This allows attackers to modify the prototype of Object, causing the addition or modification of an existing property on all objects.\n\n## Recommendation\n\nUpgrade to versions 1.0.1, 0.4.8, or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "assign-deep"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "assign-deep"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.0.1"
} ]
} ],
"versions" : [ "1.0.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10745"
}, {
"type" : "WEB",
"url" : "https://github.com/jonschlinkert/assign-deep/commit/8e3cc4a34246733672c71e96532105384937e56c"
}, {
"type" : "WEB",
"url" : "https://github.com/jonschlinkert/assign-deep/commit/90bf1c551d05940898168d04066bbf15060f50cc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jonschlinkert/assign-deep"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-ASSIGNDEEP-450211"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1014"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321", "CWE-20", "CWE-915" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-08-21T15:53:43Z",
"nvd_published_at" : "2019-08-20T19:15:00Z"
}
}