CVE-2026-4800 | 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.

Published: 2026-03-31 Last update: 2026-05-01 Assigner: ce714d77-add3-4f53-aff5-83d477b104bb Source: ce714d77-add3-4f53-aff5-83d477b104bb

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.

Exploit prediction scoring system (EPSS) score for CVE-2026-4800

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)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-4800

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.1 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.2 5.9 ce714d77-add3-4f53-aff5-83d477b104bb
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]

Weakness enumeration for CVE-2026-4800

GitHub Security Advisory for CVE-2026-4800

GHSA-r5fr-rjxr-66jc · Severity: high · Ecosystem: npm — lodash vulnerable to Code Injection via `_.template` imports key names

OS Trackers for CVE-2026-4800

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

Affected software / configurations for 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:*:*

References for CVE-2026-4800

cvelogic Threat Intelligence