npm package
lodash 2.2.1 vulnerabilities, and the version that fixes all of them
lodash 2.2.1 has 5 known vulnerabilities (3 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
- 5
- 3 rated high or critical
- Released
- Oct 3, 2013
- Latest is 4.18.1
- Downloads last week
- 22.6K
- Under 1% of lodash downloads
- Licence
- MIT
- Dependencies
- None
- Resolved by deps.dev
What to upgrade to
4.18.1 is the closest release with no known vulnerabilities that we checked.
Newest 2.x release. Released Apr 26, 2015.
5 known vulnerabilities, worst rated warningFixes all 5 known vulnerabilities. Released Mar 31, 2026.
Deprecated release4.18.1Upgrade to this
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
- CriticalVulnerability
5 known vulnerabilities in lodash 2.2.1
EPSS: top 3%3 rated high or critical. Most serious: CVE-2021-23337, Command Injection in lodash. Upgrading to 4.18.0 fixes all of them.
- WarningOutdated
lodash 2.2.1 is 2 major versions behind
Latest release is 4.18.1.
Every advisory for lodash 2.2.1
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.
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.
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.
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.
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.
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.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly lodash 2.2.1, 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.