Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-12866 EUVD-2026-38415GHSA-q9v2-7m5w-4693

expr-eval vulnerable to Code Execution

Published Jun 23, 2026 · Updated Aug 14, 2026 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— expr-eval — —
— org.webjars.npm:expr-eval — —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.webjars.npm:expr-eval <= 2.0.2 — GHSA-q9v2-7m5w-4693
npm expr-eval <= 2.0.2 — GHSA-q9v2-7m5w-4693

References