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
Downstream
Published
2025-11-05T03:30:23Z
Modified
2026-09-10T03:50:31Z
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
{
    "cwe_ids": [
        "CWE-94"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2025-11-05T18:46:50Z",
    "nvd_published_at": "2025-11-05T01:15:33Z",
    "severity": "HIGH"
}
References

Affected packages

npm / expr-eval

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-jc85-fpwf-qm7x/GHSA-jc85-fpwf-qm7x.json"

npm / expr-eval-fork

Package

Name
expr-eval-fork
View open source insights on deps.dev
Purl
pkg:npm/expr-eval-fork

Affected ranges

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

Database specific

last_known_affected_version_range
"<= 3.0.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-jc85-fpwf-qm7x/GHSA-jc85-fpwf-qm7x.json"