CVE-2026-12866

expr-eval: expr-eval: Code Execution via crafted expressions in toJSFunction() API

Published Jun 23, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q9v2-7m5w-4693 expr-eval vulnerable to Code Execution
History
Type Values Removed Values Added
Title Code Execution Vulnerability in Expr-eval toJSFunction API expr-eval: expr-eval: Code Execution via crafted expressions in toJSFunction() API
Weaknesses CWE-917
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
First Time appeared Silentmatt
Silentmatt expr-eval
Vendors & Products Silentmatt
Silentmatt expr-eval
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Code Execution Vulnerability in Expr-eval toJSFunction API
Type Values Removed Values Added
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.
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Aug 14, 2026, 3:25 PM
Reserved
Jun 22, 2026, 8:22 AM
Status
Deferred
Published
Jun 23, 2026, 5:17 AM
Modified
Jul 7, 2026, 7:16 PM
Severity
Low
Public date
Jun 23, 2026, 5:00 AM