PT-2026-51474 · Npm · Expr-Eval

·

CVE-2026-12866

·

Published

2026-06-23

·

Updated

2026-07-01

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions expr-eval (affected versions not specified)
Description Code Execution is possible 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. This issue affects approximately 800,000 weekly npm downloads and requires no authentication or user interaction.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability. As a temporary workaround, consider disabling the 'toJSFunction()' API until a patch is available.

Exploit

RCE

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-12866

Affected Products

Expr-Eval