GitHub Advisory Database
GHSA-66rh-8fw6-59q6
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.
Recommendation
Upgrade to versions 1.0.1, 0.4.8, or later.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | assign-deep | All versions before 0.4.8 (fixed in 0.4.8) |
| npm | assign-deep | From 1.0.0 before 1.0.1 (fixed in 1.0.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-10745
- https://github.com/jonschlinkert/assign-deep/commit/8e3cc4a34246733672c71e96532105384937e56c
- https://github.com/jonschlinkert/assign-deep/commit/90bf1c551d05940898168d04066bbf15060f50cc
- https://github.com/jonschlinkert/assign-deep
- https://snyk.io/vuln/SNYK-JS-ASSIGNDEEP-450211
- https://www.npmjs.com/advisories/1014