CVE-2026-12866

CRITICAL

Expr-eval - Improper Control of Generation of Code ('Code Injection')

Title source: rule
STIX 2.1

Description

All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API. An attacker can execute arbitrary JavaScript by supplying crafted expressions that are compiled into native code using new Function(). Because user-controlled expressions are transformed directly into executable JavaScript, attackers can escape the intended expression sandbox and run arbitrary code within the application's context.

Scores

CVSS v3 9.8
EPSS 0.0050
EPSS Percentile 39.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-94
Status published
Products (2)
None/expr-eval
None/org.webjars.npm:expr-eval
Published Jun 23, 2026
Tracked Since Jun 23, 2026