GHSA-r5fr-rjxr-66jc · Severity: high · Ecosystem: npm — lodash vulnerable to Code Injection via `_.template` imports key names
Impact: The fix for CVE-2021-23337 (https://github.com/advisories/GHSA-35jh-r3h4-6jhm) added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink. When an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time. Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function(). Patches: Users should upgrade to version 4.18.0. Workarounds: Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.
Conclusion & alert: CVE-2026-4800 is rated Low Risk (36.2/100): CVSS High severity, with low exploitation likelihood (EPSS 0.04%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-21 | 0.07% | 0.04% | -0.03% |
| 2 | 2026-04-01 | — | 0.07% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.1 | 3.1 | HIGH |
|
2.2 | 5.9 | ce714d77-add3-4f53-aff5-83d477b104bb |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-r5fr-rjxr-66jc · Severity: high · Ecosystem: npm — lodash vulnerable to Code Injection via `_.template` imports key names
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-4800 not yet assigned priority: Debian including 1 source packages (node-lodash), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. | https://security-tracker.debian.org/tracker/CVE-2026-4800 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2026-4800 |
ubuntu
|
medium | CVE-2026-4800 medium priority: Ubuntu including 1 source packages (node-lodash), 7 status rows across 7 suites (bionic, focal, jammy, noble, questing, upstream, xenial): needs-triage 7. | https://ubuntu.com/security/CVE-2026-4800 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| lodash | lodash | >= 4.0.0, < 4.18.0 | cpe:2.3:a:lodash:lodash:*:*:*:*:*:node.js:*:* |
| lodash | lodash-amd | >= 4.0.0, < 4.18.0 | cpe:2.3:a:lodash:lodash-amd:*:*:*:*:*:node.js:*:* |
| lodash | lodash-es | >= 4.0.0, < 4.18.0 | cpe:2.3:a:lodash:lodash-es:*:*:*:*:*:node.js:*:* |
| lodash | lodash.template | >= 4.0.0, < 4.18.0 | cpe:2.3:a:lodash:lodash.template:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://cna.openjsf.org/security-advisories.html | Third Party Advisory |
| https://github.com/advisories/GHSA-35jh-r3h4-6jhm | Not Applicable |
| https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c | Not Applicable |