CVE-2025-12735
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| silentmatt | expr-eval | 0 <= 2.0.2 | affected |
| expr-eval-fork | expr-eval-fork | 0 <= 3.0.0 | affected |
Weaknesses
- CWE-94: Improper Control of Generation of Code (‘Code Injection’)
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes (‘Prototype Pollution’)
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: yes
- Technical Impact: total
Additional References
CVE Program Container
Additional References
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
- https://github.com/advisories/GHSA-jc85-fpwf-qm7x
- https://kb.cert.org/vuls/id/263614
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.