lodash vulnerable to prototype pollution via array-path bypass in .unset, .omit, and _.pullAt
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.
Recorded fixes — lodash: 4.18.1; lodash-es: 4.18.1; 3 more packages. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 4.17.23 before 4.18.1Semantic versions | 4.18.1 |
Version evidence: OSV · GHSA-f23m-r3pf-42rh
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "4.17.23"
},
{
"fixed": "4.18.1"
}
],
"type": "SEMVER"
}
],
"versions": [
"4.17.23"
]
}