Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 npm💎 RubyGems
Not in CISA KEV
HIGH severity

GHSA-35jh-r3h4-6jhm — lodash

HIGHFix: lodash/lodash@3469357

GHSA-35jh-r3h4-6jhm is a high-severity (CVSS 7.2) Code Injection vulnerability in lodash. 6 public exploit references exist, so weaponization risk is real. A fix is available for lodash — see the affected versions and patch details below.

Command Injection in lodash

Published
May 6, 2021
Updated
Sep 10, 2026
Affected
5 pkgs
Patched
3 / 5
Exploits
6 known
Exploitation data as of Sep 24, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
21.3%probability of exploitation in next 30 days
Moderate Risk0.00%
Lower risk than most CVEs98th percentile — riskier than 98% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

GHSA-35jh-r3h4-6jhm plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.

Where this sits among everything scored

Of 378,567 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

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.

198Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream
lodashnpm
128.5Mdownloads / week
lodash-esnpm
34.4Mdownloads / week
lodash.templatenpm
5.2Mdownloads / 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

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-35jh-r3h4-6jhm can be triaged on real exposure rather than presence alone.

Tailored to GHSA-35jh-r3h4-6jhm. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

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

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?

O3 Security finds GHSA-35jh-r3h4-6jhm across npm, RubyGems dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

GHSA-35jh-r3h4-6jhm: lodash (High 7.2) | O3 Security