Feed
7.2HIGH

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%
Priority
39/100 medium
how it is computed
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

Sources

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