CVE-2025-12735 json
CVE-2025-12735
published 2025-11-05 12 mo ago modified 2026-10-18 21 d ago also GHSA-jc85-fpwf-qm7x , EUVD-2025-37820
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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 context object or use MEMBER of the context object into the evaluate() function and trigger arbitrary code execution.
Patch / fix
- npm expr-eval-fork 3.0.1
- github.com/jorenbroekema/expr-eval@1d71bb2 commit
- github.com/silentmatt/expr-eval#288 pull request
- github.com/silentmatt/expr-eval#289 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-12735 updated cvss 9.8
expr-eval:
-
Red Hat Enterprise Linux 8 grafana-pcpnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 11 mo ago
Exploit prediction
1.76% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | expr-eval | <=2.0.2 |
no fix listed |
| npm | expr-eval-fork | <3.0.1 |
3.0.1 |
Affected products
- silentmatt expr-eval
- expr-eval-fork expr-eval-fork
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/silentmatt/expr-eval/pull/288
web, issue-tracking, patch
-
github.com
/silentmatt/expr-eval/pull/289
web
-
github.com
/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43
web
-
github.com
/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js
exploit, web, product
-
github.com
/silentmatt/expr-eval
web, product
-
github.com
/jorenbroekema/expr-eval
web, product
-
npmjs.com
/package/expr-eval-fork
web, product
-
npmjs.com
/package/expr-eval
web, product
-
github.com
/advisories/GHSA-jc85-fpwf-qm7x
third-party-advisory
-
kb.cert.org
/vuls/id/263614
third-party-advisory, web
-
kb.cert.org
/vuls/id/263614
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-12735
advisory
Sources
- CVE List CVE-2025-12735
- GitHub Advisory GHSA-jc85-fpwf-qm7x
- NVD CVE-2025-12735
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.