Vulnerabilities/

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

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

No fix is available yet. Followings are affected versions:

References

Related Issues

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