HIGHCVSS 8.1Vulnerability

CVE-2026-4800

The fix for CVE-2021-23337 added validation for the variable option in _.template but did not apply the same validation to options.imports key names, and 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, so if Object.prototype has been polluted by another vector the polluted keys are copied into the imports object and passed to Function(). The issue is fixed in 4.18.1 for lodash, lodash-es, lodash-amd, and lodash.template. As a workaround, do not pass untrusted input as key names in options.imports; use only 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-24T18:41:10+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
In Signal since
initial import (Sep 2026)
Name
CVE-2026-4800
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-10-15T07:18:00.610

Related Entities (9)

AFFECTS (4)

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

AFFECTS_PRODUCT (4)

→[Product]lodash lodash-es
→[Product]lodash lodash
→[Product]lodash lodash-amd

Explore deeper with Ninja Signal's threat intelligence graph

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