CVE-2026-12866
CRITICAL 9.2CVSS 4.0expr-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.
- Published
- 23 Jun 2026
- Last modified
- 22 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-q9v2-7m5w-4693
- Sources
- NVDJSONOSV GHSA-q9v2-7m5w-4693JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | CRITICAL 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | expr-eval | <= 2.0.2 | |
| OSV | Maven | org.webjars.npm:expr-eval | <= 2.0.2 |
References
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js%23L55
- https://github.com/silentmatt/expr-eval/issues/292 · WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-17662018 · WEB
- https://security.snyk.io/vuln/SNYK-JS-EXPREVAL-15054690 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-12866 · ADVISORY
- https://github.com/silentmatt/expr-eval · PACKAGE
- https://github.com/silentmatt/expr-eval/blob/master/src/expression.js#L55 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 23 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 23 Jun 2026)