6.5Medium

CVE-2026-2950lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`

lodash lodash; lodash lodash-es; lodash lodash-amd; lodash lodash.unset Published: (7 months ago)

Description

The _.unset and _.omit functions in Lodash 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. 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.

Weakness (CWE): CWE-1321

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
lodash lodash 4.17.23 – < 4.18.1, fixed 4.18.1
lodash lodash-amd 4.17.23 – < 4.18.1, fixed 4.18.1
lodash lodash-es 4.17.23 – < 4.18.1, fixed 4.18.1
lodash lodash.omit < 4.18.0, fixed 4.18.0
lodash lodash.unset < 4.18.0, fixed 4.18.0

References and patches

CPE matches (NVD) (5)

  • cpe:2.3:a:lodash:lodash:*:*:*:*:*:node.js:*:* ≥ 4.17.23 < 4.18.1
  • cpe:2.3:a:lodash:lodash-amd:*:*:*:*:*:node.js:*:* ≥ 4.17.23 < 4.18.1
  • cpe:2.3:a:lodash:lodash-es:*:*:*:*:*:node.js:*:* ≥ 4.17.23 < 4.18.1
  • cpe:2.3:a:lodash:lodash.omit:*:*:*:*:*:node.js:*:* < 4.18.0
  • cpe:2.3:a:lodash:lodash.unset:*:*:*:*:*:node.js:*:* < 4.18.0