Loading...
Skip to main content

CVE-2021-23337

HIGH

Command Injection in lodash

Published May 6, 2021Updated July 8, 2026Source: osv

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.74%). Schedule for your next planned update.

Summary

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

Remediation

Upgrade to the fixed version using your package manager.

npm
Update lodash to 4.17.21 or later
npm install lodash@4.17.21
Bundler
Update lodash-rails to 4.17.21 or later
gem install lodash-rails -v 4.17.21
npm
Update lodash-es to 4.17.21 or later
npm install lodash-es@4.17.21

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (5)

PackageEcosystemAffectedFixed In
lodash
npm
All versions4.17.21
lodash-rails
RubyGems
0.10.0, 0.7.0, 0.8.1, 0.8.2 (+51 more)4.17.21
lodash-es
npm
All versions4.17.21
lodash.template
npm
All versionsRange-based data available
lodash-template
npm
All versionsRange-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2021-23337?
Command Injection in lodash This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.2/10).
How do I check if my project is affected by CVE-2021-23337?
CVE-2021-23337 affects lodash, lodash-rails and lodash-es (and 2 more). It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-23337 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.2

High exploitability or significant impact. Prioritize remediation within days.

EPSS Score (30-day exploit probability)
0.74%
Higher than 73% of vulnerabilities

Also Known As

GHSA-35jh-r3h4-6jhm
CVE-2026-4800
GHSA-r5fr-rjxr-66jc

Related CVEs

  • CVE-2026-64679
    HIGH

    Atlantis Workspace Handling has Path Traversal that Allows Out-of-Bounds Directory Deletion/Creation

  • CVE-2026-63135
    HIGH

    YOURLS has stored XSS in referrer statistics chart via crafted Referer header

  • CVE-2026-54178
    HIGH

    Laravel Backpack CRUD: Arbitrary file deletion via attacker-controlled clear_<attr>[] in HasUploadFields::uploadMultipleFilesToDisk

  • CVE-2026-54167
    HIGH

    Pipelines-as-Code GitHub App token request can be redirected via untrusted Enterprise Host header

  • CVE-2026-54182
    HIGH

    Laravel Backpack CRUD: OS command injection in Stats::makeCurlRequest via attacker-controlled Host header (pre-auth)

  • CVE-2020-28500
    MEDIUM

    Regular Expression Denial of Service (ReDoS) in lodash

  • CVE-2019-1010266
    MEDIUM

    Regular Expression Denial of Service (ReDoS) in lodash

  • CVE-2025-13465
    MEDIUM

    Lodash has Prototype Pollution Vulnerability in `_.unset` and `_.omit` functions

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies