9.8critical
CVE-2025-12735
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.75% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- certcc
- Also known as
- GHSA-jc85-fpwf-qm7x
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| silentmatt expr-eval | up to 2.0.2 | CVE List |
| expr-eval-fork expr-eval-fork | up to 3.0.0 | CVE List |
| expr-eval (npm) | up to 2.0.2 | GitHub Advisory Database |
| expr-eval-fork (npm) | before 3.0.1 | GitHub Advisory Database |
| jorenbroekema javascript_expression_evaluator | 3.0.0 | NVD |
| silentmatt javascript_expression_evaluator | up to 2.0.2 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high 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 |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
La biblioteca expr-eval es un analizador y evaluador de expresiones JavaScript diseñado para evaluar de forma segura expresiones matemáticas con variables definidas por el usuario. Sin embargo, debido a una validación de entrada insuficiente, un atacante puede pasar un objeto de contexto manipulado o usar MEMBER del objeto de contexto en la función evaluate() y desencadenar la ejecución de código arbitrario.
References
| https://github.com/silentmatt/expr-eval | product, web | |
| https://github.com/jorenbroekema/expr-eval | product, web | |
| https://www.npmjs.com/package/expr-eval-fork | product, web | |
| https://www.npmjs.com/package/expr-eval | product, web | |
| https://github.com/silentmatt/expr-eval/pull/288 | issue-tracking, patch, web | |
| https://github.com/advisories/GHSA-jc85-fpwf-qm7x | third-party-advisory | |
| https://kb.cert.org/vuls/id/263614 | third-party-advisory, web | |
| https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js | exploit, product, web | |
| https://www.kb.cert.org/vuls/id/263614 | third-party-advisory, 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 | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-12735 changed 2025-11-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jc85-fpwf-qm7x changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-12735 changed 2026-10-18 | Public domain |