lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`
Impact
Lodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the _.unset and _.omit functions. The fix for CVE-2025-13465 only guards against string key members, so an attacker can bypass the check by passing array-wrapped path segments. This allows deletion of properties from built-in prototypes such as Object.prototype, Number.prototype, and String.prototype.
The issue permits deletion of prototype properties but does not allow overwriting their original behavior.
Patches
This issue is patched in 4.18.0.
Workarounds
None. Upgrade to the patched version.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | lodash | < 4.18.0 | 4.18.0 |
| npm package | lodash-amd | < 4.18.0 | 4.18.0 |
| npm package | lodash-es | < 4.18.0 | 4.18.0 |
| npm package | lodash.unset | >= 4.0.0, < 4.18.0 | 4.18.0 |
References
- https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
- https://nvd.nist.gov/vuln/detail/CVE-2025-13465
- https://github.com/lodash/lodash/commit/edadd452146f7e4bad4ea684e955708931d84d81
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html
- https://github.com/lodash/lodash
- https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
- https://nvd.nist.gov/vuln/detail/CVE-2026-2950
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L- Weakness (CWE)
CWE-1321- Platform
- npm
- Package
lodash, lodash-amd, lodash-es- Disclosed
- 21.01.2026
- Updated
- 17.10.2026 05:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-f23m-r3pf-42rh - CC BY 4.0
OSV / GitHub Advisory Database - GHSA-xxjr-mmjv-4gpg - CC BY 4.0
Vulnerability history: lodash-es
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 6
- First → latest
- 07.2019 01.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 1
- Medium 4
Disclosures per year
- 2019: 2
- 2020: 1
- 2021: 1
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 1
-
lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit` this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.