CVE-2026-12866: Vulnerability in expr-eval

Critical. 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...

npm, Maven, CWE-94

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Advisory ID
GHSA-q9v2-7m5w-4693
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-94
Published
23 Jun 2026
Last change
22 Sept 2026
Ecosystem
npm, Maven

Affected packages

Vulnerable version ranges and fixed releases

  • expr-eval npm, Affected through 2.0.2. No fixed version recorded
  • org.webjars.npm:expr-eval Maven, Affected through 2.0.2. No fixed version recorded

Advisories

Vendor and security advisories