CVE-2026-12866 expr-eval vulnerable to Code Execution
CriticalCVSS 9.2
EPSS 0.87%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm expr-eval(npm) | <= 2.0.2 | No fix listed |
| org.webjars.npm/expr-eval(Maven) | <= 2.0.2 | No fix listed |
| org.webjars.npm/expr-eval(Maven) | = 2.0.2 | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
References
- security.snyk.io exploit
- security.snyk.io
- github.com
- github.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2491633 issue-tracking
- www.cve.org
- github.com