NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm💎 RubyGems
Not in CISA KEV
HIGH severity

Command Injection in lodashGHSA-35jh-r3h4-6jhm

HIGHFix: lodash/lodash@3469357

GHSA-35jh-r3h4-6jhm is a high-severity (CVSS 7.2) remote code execution vulnerability in lodash. 6 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for lodash — see the affected versions and patch details below.

Also known asCVE-2021-23337
Published
Updated
Affected
5 pkgs
Patched
3 / 5
Exploits
6 known
Exploitation data as of Nov 21, 2026 · OSV.dev, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-35jh-r3h4-6jhm.

EPSS Exploitation Probability

via FIRST.org ↗
20.2%probability of exploitation in next 30 days
Moderate Risk-1.17%
Lower risk than most CVEs98th percentile — riskier than 98% of all scored CVEsHighest risk
0.00%9.28%18.6%27.8%4.3%20.2%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

5 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

197Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream
lodashnpm
211.8Mdownloads / week
lodash-esnpm
74.4Mdownloads / week
lodash.templatenpm
4.1Mdownloads / week

Description

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

Affected Packages

5 total 3 fixed
EcosystemPackageVulnerable rangeFix
📦npmlodashall versions4.17.21npm install lodash@4.17.21
📦npmlodash-esall versions4.17.21npm install lodash-es@4.17.21
📦npmlodash.templateall versionsNo fix
📦npmlodash-templateall versionsNo fix
💎RubyGemslodash-railsall versions4.17.21bundle update lodash-rails --conservative
Exploits & PoCs
6

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for lodash, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update lodash to 4.17.21 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-35jh-r3h4-6jhm is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

How to detect GHSA-35jh-r3h4-6jhm

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id ghsa-35jh-r3h4-6jhm -u https://target
Template
Lodash Template - Server-Side Template Injection (RCE)
Severity
high
Impact
Attackers can execute arbitrary commands on the host system, leading to full system compromise.
Remediation
Update to version 4.17.21 or later.

Template by ProjectDiscovery nuclei-templates (DhiyaneshDk), MIT licensed. View the full template. Scan only systems you are authorised to test.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

In OpenShift ServiceMesh (OSSM) and Red Hat OpenShift Jaeger (RHOSJ) the affected containers are behind OpenShift OAuth authentication. This restricts access to the vulnerable nodejs-lodash library to authenticated users only, therefore the impact is low. While Red Hat Virtualization's cockpit-ovirt has a dependency…

ProductFixed inAdvisory
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-migration-ui-rhel8:v1.7.4-12RHSA-2022:6429
Red Hat OpenShift Container Platform 4.8openshift4/ose-console:v4.8.0-202107010336.p0.git.188a490.assembly.streamRHSA-2021:2438
Red Hat OpenShift Jaeger 1.20distributed-tracing/jaeger-all-in-one-rhel8:1.20.4-18RHSA-2021:2543
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8cockpit-ovirt-0:0.15.1-2.el8evRHSA-2021:3459
Red Hat Virtualization Engine 4.4ovirt-engine-ui-extensions-0:1.2.6-1.el8evRHSA-2021:2179
Red Hat Discovery 2discovery/discovery-ui-rhel9:1775675922RHSA-2026:7329
Red Hat Openshift Data Foundation 5.0odf5/cephcsi-rhel9:1795073870RHSA-2026:100741

Frequently Asked Questions

`lodash` versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
O3 Security · Impact-Aware SCA

Is GHSA-35jh-r3h4-6jhm in your dependencies?

Find it across npm, RubyGems, including transitive dependencies.

Command Injection in lodash (High 7.2)