NetSight
critical9.8

CVE-2025-12735

expr-eval does not restrict functions passed to the evaluate function

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmexpr-eval<= 2.0.2none recorded
npmexpr-eval-fork<= 3.0.03.0.1

Affected products

VendorProductAffected versions
JorenbroekemaJavascript Expression Evaluator
Version 3.0.0
SilentmattJavascript Expression Evaluator
through 2.0.2

Weakness classification

References