CVE-2021-23337Command Injection in lodash
A high-severity vulnerability reachable over the network, needing high privileges and no user interaction. EPSS estimates a 20.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 20.6%
- percentile 98%
- Fix
- Named by a source
- CVE published 15 Feb 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 20.6% (+21) · Network attack vector (+10) · No user interaction (+5)
Immediate actions
- lodash-rails (RubyGems): upgrade to 4.17.21 or later on your release line.
- lodash (npm): upgrade to 4.17.21 or later on your release line.
- lodash-es (npm): upgrade to 4.17.21 or later on your release line.
- Fixed in another package of the same advisory: lodash 4.17.21. A migration, not an upgrade of lodash-template (npm), lodash.template (npm).
- Fixed in another package of the same advisory: lodash-es 4.17.21. A migration, not an upgrade of lodash-template (npm), lodash.template (npm).
- Commit / pull request: https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
Who should check
lodash-rails (RubyGems) pkg:gem/lodash-rails
- Affected< 4.17.21Fixed in4.17.21OSV (GHSA-35jh-r3h4-6jhm)
lodash (npm) pkg:npm/lodash
- Affected< 4.17.21Fixed in4.17.21OSV (GHSA-35jh-r3h4-6jhm)
lodash-es (npm) pkg:npm/lodash-es
- Affected< 4.17.21Fixed in4.17.21OSV (GHSA-35jh-r3h4-6jhm)
lodash-template (npm) pkg:npm/lodash-template
- Affected<= 1.0.0Last known affected1.0.0OSV (GHSA-35jh-r3h4-6jhm)
lodash.template (npm) pkg:npm/lodash.template
- Affected<= 4.5.0Last known affected4.5.0OSV (GHSA-35jh-r3h4-6jhm)
Confirmed facts
- CVSS
- 7.2 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-35jh-r3h4-6jhm)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- high
- User interaction
- none
- Weakness
- CWE-77, CWE-94
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)`lodash` versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Update history
- 18 Nov 2025Exploitation more likely 0.7% → 10.4%
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-23337
- commit / pull requesthttps://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
- otherhttps://www.oracle.com/security-alerts/cpuoct2021.html
- otherhttps://www.oracle.com/security-alerts/cpujul2022.html
- otherhttps://www.oracle.com/security-alerts/cpujan2022.html
- otherhttps://www.oracle.com//security-alerts/cpujul2021.html
- otherhttps://snyk.io/vuln/SNYK-JS-LODASH-1040724
- otherhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929
- otherhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931
- otherhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928
- otherhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930
- otherhttps://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932
- otherhttps://security.netapp.com/advisory/ntap-20210312-0006
- otherhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2021-23337.yml
- otherhttps://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js#L14851
- otherhttps://github.com/lodash/lodash
- otherhttps://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-35jh-r3h4-6jhm (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 43 min ago · osv 42 min ago · nvd 42 min ago · epss 42 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-35jh-r3h4-6jhm