Skip to content
Heist/ feed
Medium

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-2950

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-2950

lodash

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

lodash-es

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

lodash-amd

Source reference: /containers/cna/affected/2/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

lodash.unset

Source reference: /containers/cna/affected/3/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

lodash.omit

Source reference: /containers/cna/affected/4/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "lodash",
    "product": "lodash",
    "versions": [
      {
        "status": "affected",
        "version": "4.17.23",
        "lessThan": "4.18.1",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "4.18.1",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/lodash",
    "defaultStatus": "unaffected"
  },
  {
    "vendor": "lodash",
    "product": "lodash-es",
    "versions": [
      {
        "status": "affected",
        "version": "4.17.23",
        "lessThan": "4.18.1",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "4.18.1",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/lodash-es",
    "defaultStatus": "unaffected"
  },
  {
    "vendor": "lodash",
    "product": "lodash-amd",
    "versions": [
      {
        "status": "affected",
        "version": "4.17.23",
        "lessThan": "4.18.1",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "4.18.1",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/lodash-amd",
    "defaultStatus": "unaffected"
  },
  {
    "vendor": "lodash",
    "product": "lodash.unset",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "4.18.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "4.18.0",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/lodash.unset",
    "defaultStatus": "unaffected"
  },
  {
    "vendor": "lodash",
    "product": "lodash.omit",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "4.18.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "4.18.0",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/lodash.omit",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-2950

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#28589 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement