GHSA-jc85-fpwf-qm7x

Suggest an improvement
Source
https://github.com/advisories/GHSA-jc85-fpwf-qm7x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-jc85-fpwf-qm7x/GHSA-jc85-fpwf-qm7x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jc85-fpwf-qm7x
Aliases
  • CVE-2025-12735
Downstream
Published
2025-11-05T03:30:23Z
Modified
2025-12-09T16:16:26.394340Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "severity": "HIGH",
    "github_reviewed_at": "2025-11-05T18:46:50Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "nvd_published_at": "2025-11-05T01:15:33Z",
    "github_reviewed": true
}
References

Affected packages

npm / expr-eval

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.0.2

npm / expr-eval-fork

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.1

Database specific

last_known_affected_version_range

"<= 3.0.0"