Home / Lodash / Lodash / CVE-2021-23337
CVE-2021-23337: is it exploited, and which versions of Lodash are affected and fixed?
CVE-2021-23337 is a code injection (remote code execution) vulnerability in Lodash. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: lodash before 4.17.21, lodash-es before 4.17.21, lodash.template through 4.5.0 and 2 more (GitHub advisory GHSA-35jh-r3h4-6jhm). Fixed in 4.17.21 (GitHub advisory GHSA-35jh-r3h4-6jhm). Severity: High (7.2, CVSS 3.1, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 08:03 UTC.
What is CVE-2021-23337?
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
From the CVE record by snyk, last updated October 8, 2026, 21:13 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Lodash | prior to 4.17.21 |
As the CVE record by snyk states it, last updated October 8, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | lodash | < 4.17.21 | 4.17.21 | GHSA-35jh-r3h4-6jhm |
| npm | lodash-es | < 4.17.21 | 4.17.21 | GHSA-35jh-r3h4-6jhm |
| npm | lodash.template | <= 4.5.0 | none listed | GHSA-35jh-r3h4-6jhm |
| npm | lodash-template | <= 1.0.0 | none listed | GHSA-35jh-r3h4-6jhm |
| RubyGems | lodash-rails | < 4.17.21 | 4.17.21 | GHSA-35jh-r3h4-6jhm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 12, 2025. Summary: Command Injection in lodash.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| lodash | lodash | before 4.17.21 | application |
| oracle | banking corporate lending process management | 14.2.0 | application |
| oracle | banking corporate lending process management | 14.3.0 | application |
| oracle | banking corporate lending process management | 14.5.0 | application |
| oracle | banking credit facilities process management | 14.2.0 | application |
| oracle | banking credit facilities process management | 14.3.0 | application |
| oracle | banking credit facilities process management | 14.5.0 | application |
| oracle | banking extensibility workbench | 14.2.0 | application |
| oracle | banking extensibility workbench | 14.3.0 | application |
| oracle | banking extensibility workbench | 14.5.0 | application |
| oracle | banking supply chain finance | 14.2.0 | application |
| oracle | banking supply chain finance | 14.3.0 | application |
| oracle | banking supply chain finance | 14.5.0 | application |
| oracle | banking trade finance process management | 14.2.0 | application |
| oracle | banking trade finance process management | 14.3.0 | application |
| oracle | banking trade finance process management | 14.5.0 | application |
| oracle | communications cloud native core binding support function | 1.9.0 | application |
| oracle | communications cloud native core policy | 1.11.0 | application |
| oracle | communications design studio | 7.4.2.0.0 | application |
| oracle | communications services gatekeeper | 7.0 | application |
| oracle | communications session border controller | 8.4 | application |
| oracle | communications session border controller | 9.0 | application |
| oracle | enterprise communications broker | 3.2.0 | application |
| oracle | enterprise communications broker | 3.3.0 | application |
| oracle | financial services crime and compliance management studio | 8.0.8.2.0 | application |
NVD analysis (status Modified), last modified October 8, 2026, 22:17 UTC.
How severe is CVE-2021-23337?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.2 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C | snyk |
| High 7.2 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-23337 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, October 8, 2026)
- EPSS
- 20.6% probability of exploitation activity in the next 30 days, percentile 97.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
- CWE-77 Improper Neutralization of Special Elements used in a Command
Where are the vendor advisories and references?
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932 x_refsource_MISC
- https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851 x_refsource_MISC
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210312-0006/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf x_refsource_CONFIRM
Who found and reported it?
- Marc Hassan (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 8, 2021
- Published
- February 15, 2021, 12:15 UTC
- CVE record updated
- October 8, 2026, 21:13 UTC by snyk
- NVD
- Modified, last modified October 8, 2026, 22:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 08:03 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Lodash?
- Mar 31, 2026CVE-2026-4800 lodash: code injection (remote code execution)
- Mar 31, 2026CVE-2026-2950 lodash: prototype pollution
- Jan 21, 2026CVE-2025-13465 lodash: prototype pollution
- Feb 15, 2021CVE-2020-28500 Lodash: regular expression denial of service (ReDoS)
- Jul 15, 2020CVE-2020-8203 lodash: denial of service (resources allocated without limits)
- Jul 17, 2019CVE-2019-1010266 lodash: denial of service (uncontrolled resource consumption)
Questions about CVE-2021-23337
Is CVE-2021-23337 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 20.6% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Lodash are affected by CVE-2021-23337?
lodash before 4.17.21, lodash-es before 4.17.21, lodash.template through 4.5.0, lodash-template through 1.0.0 and lodash-rails before 4.17.21, per the GitHub advisory GHSA-35jh-r3h4-6jhm. The tables above give every range the sources list.
Which version fixes CVE-2021-23337?
4.17.21, per the GitHub advisory GHSA-35jh-r3h4-6jhm. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-23337?
High (7.2, CVSS 3.1, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2021-23337?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.