High

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

  • Disclosed: 05.11.2025
  • Updated: 11.10.2026 10:22

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package expr-eval <= 2.0.2 no fix
npm package expr-eval-fork < 3.0.1 3.0.1

References

CVSS score -
CVSS vector
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
Weakness (CWE)
CWE-94
Platform
npm
Package
expr-eval, expr-eval-fork
Disclosed
05.11.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-jc85-fpwf-qm7x - CC BY 4.0

Vulnerability history: expr-eval

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
11.2025 06.2026
Without a fix
3
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 2

Disclosures per year

  1. 2025: 2
  2. 2026: 1
  1. Critical · 9.8 CVE-2026-12866 <= 2.0.2 no fix
  2. High · 7.3 CVE-2025-13204 <= 2.0.2 no fix
  3. expr-eval does not restrict functions passed to the evaluate function this entry
    High CVE-2025-12735 <= 2.0.2 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.