Vulnerability advisory
GHSA-f23m-r3pf-42rh
lodash vulnerable to prototype pollution via array-path bypass in `_.unset`, `_.omit`, and `_.pullAt
Also known as CVE-2026-2950
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Affected versions
| Affected | Fixed in |
|---|---|
4.17.23 to before 4.18.1 | 4.18.1Advisories → |
Also listed as affected (1) | |
| Affected | Fixed in |
|---|---|
4.17.23 to before 4.18.1 | 4.18.1Advisories → |
Also listed as affected (1) | |
| Affected | Fixed in |
|---|---|
4.17.23 to before 4.18.1 | 4.18.1Advisories → |
Also listed as affected (1) | |
| Affected | Fixed in |
|---|---|
| All versions before 4.18.0 | 4.18.0Advisories → |
| Affected | Fixed in |
|---|---|
| All versions before 4.18.0 | 4.18.0Advisories → |
Description
Impact
The _.unset, _.omit, and _.pullAt functions are vulnerable to prototype pollution. 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
The issue is patched from 4.18.0 to 4.18.1 depending on the package: lodash, lodash-es, and lodash-amd in 4.18.1, and the standalone lodash.unset and lodash.omit packages in 4.18.0.
Workarounds
None. Upgrade to the patched version.
References
- CVE-2025-13465 / GHSA-xxjr-mmjv-4gpg (original fix that this bypasses)
References
- Webgithub.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh ↗
- Webgithub.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-2950 ↗
- Webgithub.com/lodash/lodash/commit/4f0e376589e1889e8993e212a5c9041112ad178e ↗
- Webgithub.com/lodash/lodash/commit/87e6676934f7b4450fad68c35f0325ba165b48f8 ↗
- Webgithub.com/lodash/lodash/commit/bbcf0036d27ef936f175bf26e73e247994d8e1e4 ↗
- Webgithub.com/lodash/lodash/commit/db27b6bb14b12a1451b20edf87dfe307b87a337d ↗
- Webgithub.com/lodash/lodash/commit/fe8d32eda854377349a4f922ab7655c8e5df9a0b ↗
- Webcna.openjsf.org/security-advisories.html ↗
- Packagegithub.com/lodash/lodash ↗
- Webgithub.com/lodash/lodash/releases/tag/4.18.1 ↗