GitHub Advisory Database
GHSA-jf85-cpcp-j695
Prototype Pollution in lodash
Details
Versions of lodash before 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep allows a malicious user to modify the prototype of Object via {constructor: {prototype: {...}}} causing the addition or modification of an existing property that will exist on all objects.
Recommendation
Update to version 4.17.12 or later.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | lodash | All versions before 4.17.12 (fixed in 4.17.12) |
| npm | lodash-es | All versions before 4.17.14 (fixed in 4.17.14) |
| npm | lodash-amd | All versions before 4.17.13 (fixed in 4.17.13) |
| npm | lodash.defaultsdeep | All versions before 4.6.1 (fixed in 4.6.1) |
| RubyGems | lodash-rails | All versions before 4.17.12 (fixed in 4.17.12) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-10744
- https://github.com/lodash/lodash/pull/4336
- https://access.redhat.com/errata/RHSA-2019:3024
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2019-10744.yml
- https://security.netapp.com/advisory/ntap-20191004-0005
- https://snyk.io/vuln/SNYK-JS-LODASH-450202
- https://support.f5.com/csp/article/K47105354?utm_source=f5support&%3Butm_medium=RSS
- https://support.f5.com/csp/article/K47105354?utm_source=f5support&utm_medium=RSS
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://www.oracle.com/security-alerts/cpuoct2020.html