REDHAT-BUG-2453499: Medium severity npm/lodash vulnerability
Impact:
Lodash 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.
The issue permits deletion of prototype properties but does not allow overwriting their original behavior.
Patches:
This issue is patched in 4.18.0.
Workarounds:
None. Upgrade to the patched version.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
lodashto a version that resolves this vulnerability.Fixed in 4.18.0
Event History
Frequently Asked Questions
What input must an attacker control to exploit this issue?
An attacker needs to be able to supply path segments to Lodash's _.unset or _.omit functions. The bypass uses array-wrapped path segments rather than string key members.
What is the practical impact of successful exploitation?
An attacker can delete properties from built-in prototypes, including Object.prototype, Number.prototype, and String.prototype. The issue permits property deletion but does not allow overwriting the original behavior of prototype properties.
Which Lodash versions are affected, and what version fixes the issue?
Lodash 4.17.23 and earlier are affected. The issue is patched in Lodash 4.18.0.
Is there a workaround if upgrading is not immediately possible?
No workaround is provided. Upgrade to the patched version.