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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| silentmatt | expr-eval | ≤ 2.0.2 | — |
| expr-eval-fork | expr-eval-fork | ≤ 3.0.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 3 repositories
-
alecasg555/safe-expr-eval ★ 4 · Nov 27, 2025
Secure expression evaluator - Drop-in replacement for expr-eval without CVE-2025-12735 vulnerability
-
AN5I/cve-2025-12735-expr-eval-rce ★ 0 · Nov 21, 2025
Security research tool for detecting and testing CVE-2025-12735 (expr-eval RCE vulnerability)
-
alnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce ★ 0 · Nov 20, 2025
Security research tool for detecting and testing CVE-2025-12735 (expr-eval RCE vulnerability)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | expr-eval | <= 2.0.2 | — | GHSA-jc85-fpwf-qm7x |
| npm | expr-eval-fork | < 3.0.1 | 3.0.1 | GHSA-jc85-fpwf-qm7x |
References
- https://github.com/silentmatt/expr-eval
- https://github.com/jorenbroekema/expr-eval
- https://www.npmjs.com/package/expr-eval-fork
- https://www.npmjs.com/package/expr-eval
- https://github.com/silentmatt/expr-eval/pull/288
- Github Security Advisory third-party-advisory
- CERT/CC Advisory third-party-advisory