CVE-2026-12866
published critical CVSS 4.0 · 9.2expr-eval: Code Execution via crafted expressions in toJSFunction() API
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- snyk · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | snyk · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | expr-eval | 0 and later (affected · semver) | snyk · cna |
| n/a | org.webjars.npm:expr-eval | 0 and later (affected · semver) | snyk · cna |
Weaknesses
2- CWE-94 Code Execution
- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
4Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2909c5a48aca2880a19a53ffcf35e1c30d8183f1148bd20f5c4742beb46564ae
- Ingested
- 23 Sep 2026, 09:01:12 UTC
- Source record
- Official CVE record