expr-eval does not restrict functions passed to the evaluate function
High severity
GitHub Reviewed
Published
Nov 5, 2025
to the GitHub Advisory Database
•
Updated Nov 15, 2025
Description
Published by the National Vulnerability Database
Nov 5, 2025
Published to the GitHub Advisory Database
Nov 5, 2025
Reviewed
Nov 5, 2025
Last updated
Nov 15, 2025
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.
References