CVE-2026-12866

published 23 Jun 2026 · updated 14 Aug 2026

All versions of the package expr-eval are vulnerable to Code Execution via the toJSFunction() API

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in *.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
*

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-12866 severity on Zeptric[![CVE-2026-12866](https://zeptric.io/badge/cve/CVE-2026-12866.svg)](https://zeptric.io/cve/CVE-2026-12866)