NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-12735: expr-eval does not restrict functions passed to the evaluate function

highCVSS 4.0 8.6GHSA-jc85-fpwf-qm7x

The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, due to insufficient input validation, an attacker can pass a crafted variables object into the evaluate() function and trigger arbitrary code execution.

Published Nov 5, 2025 · Updated Dec 9, 2025

Affected packages

expr-eval

Ecosystem
npm
Affected
<= 2.0.2
Fixed in
No patched version yet
Check
npm ls expr-eval

expr-eval-fork

Ecosystem
npm
Affected
<= 3.0.0
Fixed in
3.0.1
Check
npm ls expr-eval-fork

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, due to insufficient input validation, an attacker can pass a crafted variables object into the evaluate() function and trigger arbitrary code execution.

Credited to sei-vsarvepalli.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries