CVE-2018-16487
MEDIUM5.6EPSS 0.47%Prototype Pollution in lodash
Published: 2/7/2019Modified: 8/12/2025
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.
Affected packages (3)
- Debian/node-lodashfrom 0, < 4.17.11+dfsg-1
- npm/lodashfrom 0, < 4.17.11
- RubyGems/lodash-railsfrom 0, < 4.17.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2018-16487
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2018-16487
- WEBhttps://github.com/lodash/lodash/commit/90e6199a161b6445b01454517b40ef65ebecd2ad
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2018-16487.yml
- WEBhttps://hackerone.com/reports/380873
- WEBhttps://security.netapp.com/advisory/ntap-20190919-0004