ghsa-jc85-fpwf-qm7x
Vulnerability from github
Published
2025-11-05 03:30
Modified
2025-11-05 18:46
Severity ?
VLAI Severity ?
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.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "expr-eval"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.0.2"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "npm",
"name": "expr-eval-fork"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.0.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-12735"
],
"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"
},
"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.",
"id": "GHSA-jc85-fpwf-qm7x",
"modified": "2025-11-05T18:46:50Z",
"published": "2025-11-05T03:30:23Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-12735"
},
{
"type": "WEB",
"url": "https://github.com/silentmatt/expr-eval/pull/288"
},
{
"type": "WEB",
"url": "https://github.com/jorenbroekema/expr-eval"
},
{
"type": "WEB",
"url": "https://github.com/silentmatt/expr-eval"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/expr-eval"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/expr-eval-fork"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "expr-eval does not restrict functions passed to the evaluate function"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…