CVE-2026-12866
9.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Summary
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
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| n/a | expr-eval | 0 < * | affected |
Weaknesses
- CWE-94: Code Execution
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: yes
- Technical Impact: total
Additional References
References
- https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55
- https://github.com/silentmatt/expr-eval/issues/292
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.