GHSA-66rh-8fw6-59q6
assign-deep Vulnerable to Prototype Pollution
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | assign-deep | < 0.4.8 | 0.4.8 |
| npm | assign-deep | >= 1.0.0, < 1.0.1 | 1.0.1 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.
- 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