CVE-2025-13465: Lodash Lodash Has Prototype Pollution Vulnerability Vulnerability
MODERATECVE-2025-13465 is a MODERATE (CVSS 6.5) lodash has prototype pollution vulnerability vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Lodash libraries in the npm ecosystem. The issue involves lodash has prototype pollution vulnerability in `_.unset` and `_.omit` functions. Remediation is available by upgrading affected packages to version 4.17.23.
CVE-2025-13465 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-2025-13465
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.17.23
npm install lodash.unset@Latest secure release
npm install lodash-es@4.17.23
npm install lodash-amd@4.17.23
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-2025-13465, 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.17.23), 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-2025-13465 Affected Lodash Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lodash
|
npm |
≥ 4.0.0
< 4.17.23
|
4.17.23
|
|
lodash.unset
|
npm |
≥ 4.0.0
≤ 4.5.2
|
|
|
lodash-es
|
npm |
≥ 4.0.0
< 4.17.23
|
4.17.23
|
|
lodash-amd
|
npm |
≥ 4.0.0
< 4.17.23
|
4.17.23
|
References
Frequently Asked Questions
What is CVE-2025-13465?
Which Lodash versions are affected?
What version fixes CVE-2025-13465?
Is lodash affected?
Is lodash.unset affected?
What is the CVSS score of CVE-2025-13465?
What CWE is associated with CVE-2025-13465?
How can I check npm dependencies for CVE-2025-13465?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xxjr-mmjv-4gpg",
"modified" : "2026-06-09T10:56:34Z",
"published" : "2026-01-21T23:01:22Z",
"aliases" : [ "CVE-2025-13465" ],
"summary" : "Lodash has Prototype Pollution Vulnerability in `_.unset` and `_.omit` functions",
"details" : "### Impact\n\nLodash versions 4.0.0 through 4.17.22 are vulnerable to prototype pollution in the `_.unset` and `_.omit` functions. An attacker can pass crafted paths which cause Lodash to delete methods from global prototypes. \n\nThe issue permits deletion of properties but does not allow overwriting their original behavior. \n\n### Patches\n\nThis issue is patched on 4.17.23.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:H/SI:H/SA:H/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lodash"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.17.23"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.17.22"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash.unset"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"last_affected" : "4.5.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash-es"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.17.23"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.17.22"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash-amd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.17.23"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.17.22"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13465"
}, {
"type" : "WEB",
"url" : "https://github.com/lodash/lodash/commit/edadd452146f7e4bad4ea684e955708931d84d81"
}, {
"type" : "WEB",
"url" : "https://cert-portal.siemens.com/productcert/html/ssa-253495.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lodash/lodash"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-21T23:01:22Z",
"nvd_published_at" : "2026-01-21T20:16:05Z"
}
}