Vulnerabilities

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

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.

  1. May 6, 2021 · GitHub Advisory Database

    Detected

    versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

  2. 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

  3. Oct 17, 2026 · GitHub Advisory Database

    Fix available

    lodash fixed in 4.17.21

  4. Oct 17, 2026 · GitHub Advisory Database

    Fix available

    lodash-es fixed in 4.17.21

  5. Oct 17, 2026 · GitHub Advisory Database

    Fix available

    lodash.template fixed in 4.5.0

  6. Oct 17, 2026 · GitHub Advisory Database

    Fix available

    lodash-template fixed in 1.0.0

  7. Oct 17, 2026 · GitHub Advisory Database

    Fix available

    lodash-rails fixed in 4.17.21

  8. Oct 17, 2026 · GitHub Advisory Database

    Updated

    versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

Sources

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.