CVE-2026-2950: Lodash Lodash Vulnerable To Prototype Pollution Vulnerability
MODERATECVE-2026-2950 is a MODERATE (CVSS 6.5) lodash vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Lodash libraries in the npm ecosystem. The issue involves lodash vulnerable to prototype pollution via array path bypass in `_.unset` and `_.omit`. Remediation is available by upgrading affected packages to version 4.18.0.
CVE-2026-2950 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L).
How to Fix CVE-2026-2950
To remediate this vulnerability, upgrade all affected Lodash dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install lodash@4.18.0
npm install lodash-es@4.18.0
npm install lodash-amd@4.18.0
npm install lodash.unset@4.18.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls lodash
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-2950, inspect your project dependencies using npm:
npm ls lodash
Analyze the terminal output to locate any version of Lodash in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.18.0), your application is affected.
Note: The npm ls lodash command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Lodash, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-2950 Affected Lodash Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lodash
|
npm |
< 4.18.0
|
4.18.0
|
|
lodash-es
|
npm |
< 4.18.0
|
4.18.0
|
|
lodash-amd
|
npm |
< 4.18.0
|
4.18.0
|
|
lodash.unset
|
npm |
≥ 4.0.0
< 4.18.0
|
4.18.0
|
References
Frequently Asked Questions
What is CVE-2026-2950?
Which Lodash versions are affected?
What version fixes CVE-2026-2950?
Is lodash affected?
Is lodash-es affected?
What is the CVSS score of CVE-2026-2950?
What CWE is associated with CVE-2026-2950?
How can I check npm dependencies for CVE-2026-2950?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f23m-r3pf-42rh",
"modified" : "2026-04-01T23:50:27Z",
"published" : "2026-04-01T23:50:27Z",
"aliases" : [ "CVE-2026-2950" ],
"summary" : "lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`",
"details" : "### Impact\n\nLodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the `_.unset` and `_.omit` functions. The fix for [CVE-2025-13465](https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg) 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`.\n\nThe issue permits deletion of prototype properties but does not allow overwriting their original behavior.\n\n### Patches\n\nThis issue is patched in 4.18.0.\n\n### Workarounds\n\nNone. Upgrade to the patched version.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lodash"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.18.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.17.23"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash-es"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.18.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.17.23"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash-amd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.18.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.17.23"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash.unset"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.18.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh"
}, {
"type" : "WEB",
"url" : "https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-2950"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lodash/lodash"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-01T23:50:27Z",
"nvd_published_at" : "2026-03-31T20:16:26Z"
}
}