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
EPSS Exploitation Probability
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
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.
lodashnpmlodash-esnpmlodash.templatenpmDescription
lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | lodash | all versions | 4.17.21npm install lodash@4.17.21 |
| 📦npm | lodash-es | all versions | 4.17.21npm install lodash-es@4.17.21 |
| 📦npm | lodash.template | all versions | No fix |
| 📦npm | lodash-template | all versions | No fix |
| 💎RubyGems | lodash-rails | all versions | 4.17.21bundle update lodash-rails --conservative |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via…
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via…
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via…
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via…
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via…
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via…
Detection & mitigation playbook
Open-source dependencyDetect
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.
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.
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.
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.
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…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Migration Toolkit for Containers 1.7 | rhmtc/openshift-migration-ui-rhel8:v1.7.4-12 | RHSA-2022:6429 |
| Red Hat OpenShift Container Platform 4.8 | openshift4/ose-console:v4.8.0-202107010336.p0.git.188a490.assembly.stream | RHSA-2021:2438 |
| Red Hat OpenShift Jaeger 1.20 | distributed-tracing/jaeger-all-in-one-rhel8:1.20.4-18 | RHSA-2021:2543 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | cockpit-ovirt-0:0.15.1-2.el8ev | RHSA-2021:3459 |
| Red Hat Virtualization Engine 4.4 | ovirt-engine-ui-extensions-0:1.2.6-1.el8ev | RHSA-2021:2179 |
| Red Hat Discovery 2 | discovery/discovery-ui-rhel9:1775675922 | RHSA-2026:7329 |
Frequently Asked Questions
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.