CVE-2026-12866
All versions of the package expr-eval are vulnerable to Code …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55
- github.com/silentmatt/expr-eval/issues/292
- security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018
- nvd.nist.gov/vuln/detail/CVE-2026-12866
- github.com/silentmatt/expr-eval/blob/master/src/expression.js#L55
- github.com/advisories/GHSA-q9v2-7m5w-4693
- nvd.nist.gov/vuln/detail/CVE-2026-12866
- cve.org/CVERecord?id=CVE-2026-12866
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.