GitHub Advisoryadvisory · npm, RubyGems
GHSA-4xc9-xhrj-v574 Prototype Pollution in lodash
HIGH
Official page ↗
- Aliases
- CVE-2018-16487
- Ecosystem
- npm, RubyGems
- Packages
- lodash, lodash-rails
- Severity
- High
- Weaknesses
- CWE-400
- Reviewed
- 2020-06-16
Affected packages
• npm lodash: < 4.17.11 → fixed in 4.17.11
• RubyGems lodash-rails: < 4.17.11 → fixed in 4.17.11
Description
Versions of `lodash` before 4.17.11 are vulnerable to prototype pollution.
The vulnerable functions are 'defaultsDeep', 'merge', and 'mergeWith' which allow 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.11 or later.
Related
Alias · CVE (1)
- CVE-2018-16487 A prototype pollution vulnerability was found in lodash <4.17.11 where the functions merge, mergeWith, and defaultsDeep can be tricked into… vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-16487 advisory
- https://github.com/lodash/lodash/commit/90e6199a161b6445b01454517b40ef65ebecd2ad web
- https://hackerone.com/reports/380873 web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2018-16487.yml web
- https://security.netapp.com/advisory/ntap-20190919-0004 web