Vulnerabilities/

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

Severity:
High

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.

Recommendation

Update the expr-eval-fork package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
expr-eval-fork
Anything's wrong? Let us know Last updated on December 09, 2025