Medium

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

  • Disclosed: 21.01.2026
  • Updated: 17.10.2026 05:17

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 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

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package lodash < 4.18.0 4.18.0
npm package lodash-amd < 4.18.0 4.18.0
npm package lodash-es < 4.18.0 4.18.0
npm package lodash.unset >= 4.0.0, < 4.18.0 4.18.0

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness (CWE)
CWE-1321
Platform
npm
Package
lodash, lodash-amd, lodash-es
Disclosed
21.01.2026
Updated
17.10.2026 05:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-f23m-r3pf-42rh - CC BY 4.0

OSV / GitHub Advisory Database - GHSA-xxjr-mmjv-4gpg - CC BY 4.0

Vulnerability history: lodash.unset

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.