Advisory

GHSA-jc85-fpwf-qm7x

Also known as: CVE-2025-12735

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-11-05 03:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

expr-eval

npm · All systems

Affected

  • introduced 0, last affected 2.0.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

expr-eval-fork

npm · All systems

Affected

  • introduced 0, fixed 3.0.1 (semver)

Fixed versions

3.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences