jonschlinkert/assign-deep · Security
assign-deep Vulnerable to Prototype Pollution
- GHSA ID
- GHSA-66rh-8fw6-59q6
- CVE ID
- CVE-2019-10745
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v3
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Description
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.
Recommendation
Upgrade to versions 1.0.1, 0.4.8, or later.
CWEs
- CWE-20 · Improper Input Validation
- CWE-915 · Improperly Controlled Modification of Dynamically-Determined Object Attributes
- CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-10745 ↗
- https://snyk.io/vuln/SNYK-JS-ASSIGNDEEP-450211 ↗
- https://www.npmjs.com/advisories/1014 ↗
- https://github.com/jonschlinkert/assign-deep/commit/8e3cc4a34246733672c71e96532105384937e56c ↗
- https://github.com/jonschlinkert/assign-deep/commit/90bf1c551d05940898168d04066bbf15060f50cc ↗
- https://github.com/advisories/GHSA-66rh-8fw6-59q6 ↗