GHSA-q9v2-7m5w-4693
expr-eval vulnerable to Code Execution
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0No fixed version published yet for expr-eval (npm). Pin to a known-safe version or switch to an alternative.
0No fixed version published yet for org.webjars.npm:expr-eval (maven). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-12866[ADVISORY]
- https://github.com/silentmatt/expr-eval/issues/292[WEB]
- https://github.com/silentmatt/expr-eval[PACKAGE]
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js#L55[WEB]
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018[WEB]
- https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690[WEB]