expr-eval vulnerable to Code Execution
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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2026-12866US | — | — | ||
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 tha… | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/silentmatt/expr-evalPACKAGE
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js#L55WEB
- https://github.com/silentmatt/expr-eval/issues/292WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-12866ADVISORY
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018WEB
- https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690WEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan