CVE-2025-12735
CRITICAL Exploitation: PoC
9.8
CVSS 3.1
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.
Metadata
Severity & Metrics
9.8
CRITICAL CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SSVC — CISA Coordinator
Affected products (2)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| expr-eval-fork | expr-eval-fork | — | 0 ≤ 3.0.0 |
| silentmatt | expr-eval | — | 0 ≤ 2.0.2 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| — | cna | CWE-94: Improper Control of Generation of Code (‘Code Injection’) |
| — | cna | CWE-1321: Improperly Controlled Modification of Object Prototype Attributes (‘Prototype Pollution’) |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 9.8 | CRITICAL | 3.1 | adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (7)
- 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 https://github.com/advisories/GHSA-jc85-fpwf-qm7x
- CERT/CC Advisory https://kb.cert.org/vuls/id/263614