npm package

lodash 4.17.2 vulnerabilities, and the version that fixes all of them

lodash 4.17.2 has 10 known vulnerabilities (5 rated high or critical); 4.18.0 fixes all of them. 4.18.0 is a deprecated release, so upgrade to 4.18.1, which has no known vulnerabilities.

npm (opens in a new tab) describes it as “Lodash modular utilities.”

Known vulnerabilities
10
5 rated high or critical
Released
Nov 16, 2016
Latest is 4.18.1
Downloads last week
30.6K
Under 1% of lodash downloads
Licence
MIT
OpenSSF Scorecard
7.5/10
lodash/lodash (opens in a new tab)
Dependencies
None
Resolved by deps.dev

What to upgrade to

4.18.1 is the closest release with no known vulnerabilities that we checked.

  • 4.18.0

    Fixes all 10 known vulnerabilities. Released Mar 31, 2026.

    Deprecated release
  • 4.18.1Upgrade to this

    Newest 4.x release and the latest release. Released Apr 1, 2026.

    No known vulnerabilities

4.18.1 came out on Apr 1, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for lodash 4.17.2

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2021-23337 on OSV.dev (opens in a new tab)GHSA-35jh-r3h4-6jhmEPSS: top 3%

    Command Injection in lodash

    Fixed in 4.17.21. Published May 6, 2021.

  2. WarningCVE-2020-28500 on OSV.dev (opens in a new tab)GHSA-29mw-wpgm-hmr9EPSS: top 6%

    Regular Expression Denial of Service (ReDoS) in lodash

    Fixed in 4.17.21. Published Jan 6, 2022.

  3. CriticalCVE-2020-8203 on OSV.dev (opens in a new tab)GHSA-p6mc-m468-83gwEPSS: top 8%

    Prototype Pollution in lodash

    Fixed in 4.17.19. Published Jul 15, 2020.

  4. CriticalCVE-2019-10744 on OSV.dev (opens in a new tab)GHSA-jf85-cpcp-j695EPSS: top 8%

    Prototype Pollution in lodash

    Fixed in 4.17.12. Published Jul 10, 2019.

  5. WarningCVE-2019-1010266 on OSV.dev (opens in a new tab)GHSA-x5rq-j2xg-h7qmEPSS: top 13%

    Regular Expression Denial of Service (ReDoS) in lodash

    Fixed in 4.17.11. Published Jul 19, 2019.

  6. CriticalCVE-2026-4800 on OSV.dev (opens in a new tab)GHSA-r5fr-rjxr-66jcEPSS: top 15%

    lodash vulnerable to Code Injection via `_.template` imports key names

    Fixed in 4.18.0. Published Apr 1, 2026.

  7. WarningCVE-2018-3721 on OSV.dev (opens in a new tab)GHSA-fvqr-27wr-82fmEPSS: top 17%

    Prototype Pollution in lodash

    Fixed in 4.17.5. Published Jul 26, 2018.

  8. WarningCVE-2025-13465 on OSV.dev (opens in a new tab)GHSA-xxjr-mmjv-4gpgEPSS: top 22%

    Lodash has Prototype Pollution Vulnerability in `_.unset` and `_.omit` functions

    Fixed in 4.17.23. Published Jan 21, 2026.

  9. CriticalCVE-2018-16487 on OSV.dev (opens in a new tab)GHSA-4xc9-xhrj-v574EPSS: top 26%

    Prototype Pollution in lodash

    Fixed in 4.17.11. Published Feb 7, 2019.

  10. WarningCVE-2026-2950 on OSV.dev (opens in a new tab)GHSA-f23m-r3pf-42rhEPSS: top 68%

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

    Fixed in 4.18.0. Published Apr 1, 2026.

Who is still on a vulnerable lodash

36% of last week’s 162.3M lodash downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Is lodash the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly lodash 4.17.2, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.