Vulnerability · CVE-2021-23337
Command Injection in lodash
Published May 6, 2021 · catalog updated Oct 17, 2026 · Command Injection in lodash
Check this week
CVE-2021-23337 is not in CISA KEV. FIRST estimates a 21.33% chance of exploitation in the next 30 days. Check whether you run Command Injection in lodash.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Command Injection in lodash).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- High7.2
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 21.33%
- Remediation
- Advisory link
- Affected products
- RubyGems lodash-rails · npm lodash · npm lodash-es · npm lodash-template · npm lodash.template
versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- RubyGems lodash-rails0 → 4.17.21
- npm lodash0 → 4.17.21
- npm lodash-es0 → 4.17.21
- npm lodash-template0 → 1.0.0
- npm lodash.template0 → 4.5.0
How to fix CVE-2021-23337
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2021-23337 is not in CISA KEV. FIRST estimates a 21.33% chance of exploitation in the next 30 days. Check whether you run Command Injection in lodash.
Which versions are affected?
Compare what you have installed with 0 → 4.17.21, 0 → 1.0.0, 0 → 4.5.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-77: Command Injection; CWE-94: Code Injection. EPSS 21.33%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
May 6, 2021 · GitHub Advisory Database
Detected
versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Oct 17, 2026 · GitHub Advisory Database
Fix available
lodash fixed in 4.17.21; lodash-es fixed in 4.17.21; lodash-rails fixed in 4.17.21
Oct 17, 2026 · GitHub Advisory Database
Fix available
lodash fixed in 4.17.21
Oct 17, 2026 · GitHub Advisory Database
Fix available
lodash-es fixed in 4.17.21
Oct 17, 2026 · GitHub Advisory Database
Fix available
lodash.template fixed in 4.5.0
Oct 17, 2026 · GitHub Advisory Database
Fix available
lodash-template fixed in 1.0.0
Oct 17, 2026 · GitHub Advisory Database
Fix available
lodash-rails fixed in 4.17.21
Oct 17, 2026 · GitHub Advisory Database
Updated
versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Sources
- CVE.orgVulnerability recordCVE-2021-23337
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2021-23337
30-day exploitation probability 21.3%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-35jh-r3h4-6jhm
GitHub Advisory Database record mirrored by OSV.
github.com - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-35jh-r3h4-6jhm
Command Injection in lodash
osv.dev
References
Freshness
Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.