CVE-2025-12735
CRITICAL 9.8CVSS 3.1expr-eval does not restrict functions passed to the evaluate function
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.
- Published
- 5 Nov 2025
- Last modified
- 18 Oct 2026
- Assigned by
- cret@cert.org
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-jc85-fpwf-qm7x
- Sources
- NVDJSONOSV GHSA-jc85-fpwf-qm7xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jorenbroekema | javascript_expression_evaluatorcpe:2.3:a:jorenbroekema:javascript_expression_evaluator:3.0.0:*:*:*:*:node.js:*:* |
= 3.0.0 | |
| NVD | silentmatt | javascript_expression_evaluatorcpe:2.3:a:silentmatt:javascript_expression_evaluator:*:*:*:*:*:node.js:*:* |
<= 2.0.2 | |
| OSV | npm | expr-eval | <= 2.0.2 | |
| OSV | npm | expr-eval-fork | < 3.0.1 | 3.0.1 |
References
- https://github.com/advisories/GHSA-jc85-fpwf-qm7x · Third Party Advisory
- https://github.com/jorenbroekema/expr-eval · Product, WEB
- https://github.com/silentmatt/expr-eval · Product, WEB
- https://github.com/silentmatt/expr-eval/pull/288 · Issue Tracking, Patch, WEB
- https://kb.cert.org/vuls/id/263614 · Third Party Advisory, WEB
- https://www.npmjs.com/package/expr-eval · Product, WEB
- https://www.npmjs.com/package/expr-eval-fork · Product, WEB
- https://www.kb.cert.org/vuls/id/263614 · Third Party Advisory, WEB
- https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-12735 · ADVISORY
- https://github.com/silentmatt/expr-eval/pull/289 · WEB
- https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43 · WEB
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 5 Nov 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Nov 2025)