Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lodash.unset
  4. ›
  5. CVE-2026-2950

CVE-2026-2950: lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`

April 1, 2026

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.

References

  • github.com/advisories/GHSA-f23m-r3pf-42rh
  • github.com/lodash/lodash
  • github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
  • github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
  • nvd.nist.gov/vuln/detail/CVE-2026-2950

Code Behaviors & Features

Detect and mitigate CVE-2026-2950 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.18.0

Fixed versions

  • 4.18.0

Solution

Upgrade to version 4.18.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/lodash.unset/CVE-2026-2950.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:50 +0000.