ADVISORIES

GitHub Advisory Database

GHSA-q9v2-7m5w-4693

expr-eval vulnerable to Code Execution

Critical No fix available CVE-2026-12866

Details

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 packages

EcosystemPackageAffected versions
npmexpr-eval
All versions up to and including 2.0.2
Mavenorg.webjars.npm:expr-eval
All versions up to and including 2.0.2

References