HIGHCVSS 8.1Vulnerability

CVE-2026-4800

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.

Properties

summary
lodash vulnerable to Code Injection via `_.template` imports key names
severity
HIGH
epss_score
0.02618
cvss_severity
HIGH
cvss_score
8.1
retrieved_at
2026-10-18T00:41:47+00:00
ghsa_published
2026-04-01T23:51:12Z
source_url
https://github.com/advisories/GHSA-r5fr-rjxr-66jc
ghsa_updated
2026-04-01T23:51:13Z
ghsa_id
GHSA-r5fr-rjxr-66jc
score
8.1
last_source
FIRST EPSS
cve_id
CVE-2026-4800
cvss_vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
signal_observed_at
2026-09-11T17:54:50+00:00
is_ghsa_only
false
vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
published_at
2026-03-31T20:16:29.660
last_modified
2026-09-10T13:20:23.210
epss_percentile
0.85199

Related Entities (12)

DESCRIBED_BY (1)

→[Source]NVD

AFFECTS_PRODUCT (4)

→[Product]
→[Product]
→[Product]
→[Product]

ENRICHED_BY (1)

→[Source]FIRST EPSS

HAS_WEAKNESS (1)

→[Weakness]Improper Control of Generation of Code ('Code Injection')

REPORTED_BY (1)

→[Source]GitHub Advisory Database

AFFECTS (4)

→[Software]npm/lodash-amd
→[Software]npm/lodash.template
→[Software]npm/lodash
→[Software]npm/lodash-es

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-4800 (CVSS 8.1) — Ninja Signal Threat Intelligence | Ninja Signal