Description
Versions of lodash before 4.17.5 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 __proto__ causing the addition or modification of an existing property that will exist on all objects.
Recommendation
Update the lodash package to the latest compatible version. Followings are version details:
- Affected version(s): < 4.17.5
- Patched version(s): 4.17.5
References
- GHSA-fvqr-27wr-82fm
- hackerone.com
- security.netapp.com
- CVE-2018-3721
- CWE-1321
- CWE-471
- CAPEC-310
- OWASP 2021-A3
- OWASP 2021-A6
Related Issues
- Prototype Pollution in lodash (GHSA-4xc9-xhrj-v574) - CVE-2018-16487
- Lodash has Prototype Pollution Vulnerability in `_.unset` and `_.omit` functions - CVE-2025-13465
- Prototype Pollution in just-extend - CVE-2018-16489
- Prototype Pollution in extend - CVE-2018-16492
- Tags:
- npm
- lodash
Anything's wrong? Let us know Last updated on August 12, 2025