UNKNOWN npm

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

GHSA-jc85-fpwf-qm7x · CVE-2025-12735

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes