CVE Catalog

CVE-2025-12735

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

High risk
1.76%

78th percentile - higher than 78% of all known CVEs

Summary

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 context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution.

Risk Assessment

The vulnerability may allow remote code execution in the context of an application using expr-eval, potentially leading to compromise of the application or server. Risk depends on whether input is user-controlled.

Recommendation

Update the expr-eval library to a patched version. If updating is not possible, avoid passing untrusted data to the evaluate() function and consider using an alternative library.

Other vulnerabilities in expr-eval

Original NVD description (English source)

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 context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS