GHSA-jc85-fpwf-qm7xHigh

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

Published
November 5, 2025
Last Modified
December 9, 2025

🔗 CVE IDs covered (1)

📋 Description

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 products2

  • npm/expr-eval:<= 2.0.2
  • npm/expr-eval-fork:<= 3.0.0

🔗 References (12)