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.
Published: 2026-06-23
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 25 Jun 2026 00:15:00 +0000

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


Wed, 24 Jun 2026 16:45:00 +0000

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

Tue, 23 Jun 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 23 Jun 2026 06:45:00 +0000

Type Values Removed Values Added
Title Code Execution Vulnerability in Expr-eval toJSFunction API

Tue, 23 Jun 2026 05:15:00 +0000

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'}


Subscriptions

Silentmatt Expr-eval
cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2026-06-27T15:25:05.793Z

Reserved: 2026-06-22T08:22:34.991Z

Link: CVE-2026-12866

cve-icon Vulnrichment

Updated: 2026-06-23T12:05:41.966Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-06-23T05:00:00Z

Links: CVE-2026-12866 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T02:15:03Z

Weaknesses