CVE-2026-12866: Code Injection
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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-12866?
CVE-2026-12866 has a critical severity rating of 9.8.
How does CVE-2026-12866 allow for code execution?
CVE-2026-12866 allows for code execution through the toJSFunction() API, where crafted expressions can execute arbitrary JavaScript.
Which versions of expr-eval are affected by CVE-2026-12866?
All versions of the expr-eval package are affected by CVE-2026-12866.
What is the risk level associated with CVE-2026-12866?
CVE-2026-12866 is rated with a risk level of 86.
How can I mitigate the risks of CVE-2026-12866?
To mitigate the risks of CVE-2026-12866, upgrade to a patched version of the expr-eval package.