lodash 4.17.21 has no known unpatched CVEs. It patches CVE-2021-23337 (zipObjectDeep), CVE-2020-8203 (set __proto__ blocked), and CVE-2019-10744. There is no lodash 5.x — 4.17.21 is the latest release.
All lodash CVEs — Complete Vulnerability History
Last updated: April 1, 2026 · Data: OSV Database
lodash is one of the most-downloaded JavaScript utility libraries. It has had several high-severity CVEs, mostly prototype pollution and command injection. All are fixed in 4.17.21.
CVE history — all 6 known vulnerabilities
🔴 1 CVE on CISA KEV — actively exploited in real attacks
| CVE ID | Year | Severity | Description | Fix |
|---|---|---|---|---|
| CVE-2018-3721 | 2018 | MEDIUM | Prototype pollution via defaultsDeep | Fixed in 4.17.5 |
| CVE-2018-16487 | 2018 | HIGH | Prototype pollution via merge | Fixed in 4.17.11 |
| CVE-2019-1010266 | 2019 | MEDIUM | Regular expression DoS in trim functions | Fixed in 4.17.11 |
| CVE-2019-10744 | 2019 | CRITICAL | Prototype pollution via defaultsDeep (bypass) | Fixed in 4.17.12 |
| CVE-2020-8203 | 2020 | 🔴HIGH | Prototype pollution via zipObjectDeep and merge — CISA KEV | Fixed in 4.17.21 |
| CVE-2021-23337 | 2021 | HIGH | Command injection via template function | Fixed in 4.17.21 |
Current safe version
The latest safe version addresses all 6 known CVEs listed above.
Before and after
Vulnerable:
"lodash": "4.17.15"
Fixed:
"lodash": "4.17.21"
Then run: npm install
Which packages pull in lodash?
lodash is one of the most common transitive dependencies in the npm ecosystem:
| Package | Downloads | Why |
|---|---|---|
webpack | varies | Webpack uses lodash for internal utilities |
babel | varies | Babel toolchain pulls in lodash |
gatsby | varies | Gatsby framework — multiple lodash paths |
react-scripts | legacy | Create React App — lodash throughout |
aws-sdk | varies | AWS SDK v2 heavily uses lodash |
Force safe lodash version across all transitive paths:
Paste your manifest — see your exact installed version against this full CVE list.
Scan with PackageFix →Free · No signup · No CLI · Runs in your browser