CVE-2025-12735

EPSS 0.07%

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

Published: 11/5/2025Modified: 2/4/2026
Also known as:GHSA-jc85-fpwf-qm7xCGA-c8h7-whq6-6c53

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.

Affected packages (2)

CVSS scores

SourceVersionSeverityVector
osvCVSS 4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References (11)