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.
References
| Link | Resource |
|---|---|
| https://github.com/advisories/GHSA-jc85-fpwf-qm7x | Third Party Advisory |
| https://github.com/jorenbroekema/expr-eval | Product |
| https://github.com/silentmatt/expr-eval | Product |
| https://github.com/silentmatt/expr-eval/pull/288 | Issue Tracking Patch |
| https://kb.cert.org/vuls/id/263614 | Third Party Advisory |
| https://www.npmjs.com/package/expr-eval | Product |
| https://www.npmjs.com/package/expr-eval-fork | Product |
| https://www.kb.cert.org/vuls/id/263614 | Third Party Advisory |
| https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js | Product |
Configurations
Configuration 1 (hide)
|
History
No history.
Information
Published : 2025-11-05 01:15
Updated : 2026-06-17 08:32
NVD link : CVE-2025-12735
Mitre link : CVE-2025-12735
CVE.ORG link : CVE-2025-12735
JSON object : View
Products Affected
jorenbroekema
- javascript_expression_evaluator
silentmatt
- javascript_expression_evaluator
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
