~ / search / GHSA-q9v2-7m5w-4693

GHSA-q9v2-7m5w-4693

expr-eval vulnerable to Code Execution

Source: GitHub Advisory Database (reviewed) Critical CVE-2026-12866

Packages

EcosystemPackageAffectedFixed in
npm expr-eval <= 2.0.2 no fix listed
Maven org.webjars.npm:expr-eval <= 2.0.2 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.