CVE-2026-12866: expr-eval - Remote Code Execution
- Cve: CVE-2026-12866
- Name: expr-eval - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary JavaScript code within the application context, potentially leading to full compromise.
- Remediation: Update to the latest version of expr-eval with security patches.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00866
- Epss percentile: 0.59607
- Assignee: [email protected]
- Published at: 2026-06-23T05:17:03Z
- Age in days: 154
- Modified at: 2026-07-07T19:16:51Z
- References total: 4
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12866
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
Same in every row:
- Source: nvd
- Tags:
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| silentmatt/expr-eval | issues, package | yes | /v1/repositories/silentmatt/expr-eval |
Index
- Repositories: 54
- Repositories high signal: 27
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts