CVE-2025-12735
expr-eval does not restrict functions passed to the evaluate function
EPSS 2.3%
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.
How to fix CVE-2025-12735
To remediate CVE-2025-12735, upgrade the affected package to a fixed version below.
- npm/expr-eval—no fix listed
- npm/expr-eval-fork—upgrade to 3.0.1 or later
Is CVE-2025-12735 being exploited?
Low — EPSS is 2.3%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, <= 2.0.2
- from 0, < 3.0.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |