Description
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Timeline
ID reserved
By snyk
- 38 days later
· 38 days later
Published
- 6 years later
· 6 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | High7.2 | 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 |
| NVDNVD · Modified | 3.1 | High7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 21.3% · top 2.4% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.2.
Weakness
- Command Injection
- CWE-94 (opens in a new tab)All about CWE-94 and its CVEs
Affected products
Lodash
- affected prior to 4.17.21
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemslodash-railsGHSA-35jh-r3h4-6jhm (opens in a new tab)
- npmlodashGHSA-35jh-r3h4-6jhm (opens in a new tab)
- npmlodash-esGHSA-35jh-r3h4-6jhm (opens in a new tab)
- npmlodash-templateGHSA-35jh-r3h4-6jhm (opens in a new tab)
- npmlodash.templateGHSA-35jh-r3h4-6jhm (opens in a new tab)
References (13)
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com//security-alerts/cpujul2021.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20210312-0006/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.oracle.com/security-alerts/cpuoct2021.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpujan2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpujul2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-35jh-r3h4-6jhm (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2021-23337)Record last updated .