Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
CVE-2021-23337
This high-severity CVE scores 7.2 under NVD CVSS v3. EPSS exploit probability: 4.3%, top 11% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.2
- EG Score
- 7.2(medium)
- EPSS
- 97.4%
- KEV
- Not listed
Published
February 15, 2021
Last Modified
November 21, 2024
References (26)
- report@snykhttps://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- report@snykhttps://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851
- report@snykhttps://security.netapp.com/advisory/ntap-20210312-0006/
- report@snykhttps://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932
- report@snykhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930
- report@snykhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928
- report@snykhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931
- report@snykhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929
- report@snykhttps://snyk.io/vuln/SNYK-JS-LODASH-1040724
- report@snykhttps://www.oracle.com//security-alerts/cpujul2021.html
- report@snykhttps://www.oracle.com/security-alerts/cpujan2022.html
- report@snykhttps://www.oracle.com/security-alerts/cpujul2022.html
- report@snykhttps://www.oracle.com/security-alerts/cpuoct2021.html
- af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- af854a3a-2127-422b-91ae-364da2661108https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851
Vendor Advisories for CVE-2021-23337(5)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:7329Red Hat Product SecurityHigh
Red Hat Security Advisory: A Subscription Management tool for finding and reporting Red Hat product usage
- RHSA-2022:6429Red Hat Product SecurityHigh
Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.7.4 security and bug fix update
- RHSA-2021:3459Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Virtualization Host security and bug fix update [ovirt-4.4.8]
- RHSA-2021:2438Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.8.2 bug fix and security update
- RHSA-2021:1168Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Advanced Cluster Management 2.2.2 security and bug fix update
Patch Availability(6)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | discovery/discovery-ui-rhel9:1775675922 | 2026-04-09 | redhat |
| redhat | rhmtc/openshift-migration-ui-rhel8:v1.7.4-12 | 2022-09-13 | redhat |
| redhat | cockpit-ovirt-0:0.15.1-2.el8ev | 2021-09-08 | redhat |
| redhat | openshift4/ose-thanos-rhel8:v4.8.0-202106291913.p0.git.c358e96.assembly.stream | 2021-07-27 | redhat |
| redhat | distributed-tracing/jaeger-query-rhel8:1.20.4-18 | 2021-06-24 | redhat |
| redhat | ovirt-web-ui-0:1.6.9-1.el8ev | 2021-06-01 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(5 across 2 ecosystems)
npm(4)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| lodash | — | 4.17.21 | — |
| lodash-es | — | 4.17.21 | — |
| lodash-template | — | — | — |
| lodash.template | — | — | — |
RubyGems(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| lodash-rails | 0.10.0 ... 4.6.1 (55 versions) | 4.17.21 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(2)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 5× in last 7d / 39× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 08:48 UTCOSV refresh
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
Show 46 moreShow fewer
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 13:43 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 20:49 UTCEG score recompute
- 2026-05-26 20:49 UTCVendor advisory
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-24 16:49 UTCEPSS rescore
Publicly available exploits
(1 reference)Working exploit code is in the public domain. Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Nucleihttp/cves/2021/CVE-2021-23337.yamlFirst seen Jan 1, 2021
Lodash Template - Server-Side Template Injection (RCE)
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Same CWE
10 shownCWE-94
- CVE-2006-1359NVD 0.0EG 9.0EPSS 99%NONE
- CVE-2005-1921NVD 0.0EG 9.0EPSS 100%NONE
- CVE-2005-3302EG 7.3HIGH
- CVE-2005-1876EG 4.5MEDIUM
- CVE-2003-1599EG 0.0NONE
- CVE-2006-1318EG 0.0EPSS 96%NONE
- CVE-2006-1301EG 0.0EPSS 95%NONE
- CVE-2006-1308EG 0.0EPSS 95%NONE
- CVE-2006-1309EG 0.0EPSS 95%NONE
- CVE-2006-1304EG 0.0EPSS 95%NONE
Frequently asked(5)
What is CVE-2021-23337?
When was CVE-2021-23337 disclosed?
Is CVE-2021-23337 actively exploited?
What is the CVSS score of CVE-2021-23337?
How do I remediate CVE-2021-23337?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-23337
Is Your Infrastructure Affected by CVE-2021-23337?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.