CVE-2026-12866
Severity CVSS v4.0:
CRITICAL
Type:
CWE-94
Code Injection
Publication date:
23/06/2026
Last modified:
07/07/2026
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.
Impact
Base Score 4.0
9.20
Severity 4.0
CRITICAL
Base Score 3.x
9.80
Severity 3.x
CRITICAL
References to Advisories, Solutions, and Tools
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55
- https://github.com/silentmatt/expr-eval/issues/292
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018
- https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690
- https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690



