Advisory

GHSA-q9v2-7m5w-4693

Also known as: CVE-2026-12866

Summary

expr-eval vulnerable to Code Execution

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-06-23 06:30 UTC
Modified
2026-09-22 14:45 UTC

Affected packages and fixes

expr-eval

npm · All systems

Affected

  • introduced 0, last affected 2.0.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences