CVE-2026-12866
CVE-2026-12866 is a critical vulnerability in the expr-eval package, which allows for 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. This vulnerability has a CVSS score of 9.2 and is considered critical. The vulnerability was published on June 23, 2026, and has since been modified on the same day. The expr-eval package is used in various applications, and users are advised to update to a patched version as soon as possible.