CVE-2025-12735
published critical CVSS 3.1 · 9.8Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| silentmatt | expr-eval | 0 through 2.0.2 (affected · semver) | certcc · cna |
| expr-eval-fork | expr-eval-fork | 0 through 3.0.0 (affected · semver) | certcc · cna |
Weaknesses
2- CWE-94 CWE-94: Improper Control of Generation of Code (‘Code Injection’)
- CWE-1321 CWE-1321: Improperly Controlled Modification of Object Prototype Attributes (‘Prototype Pollution’)
References
9- Github Security Advisory https://github.com/advisories/GHSA-jc85-fpwf-qm7x
- https://github.com/jorenbroekema/expr-eval
- https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js
- https://github.com/silentmatt/expr-eval
- https://github.com/silentmatt/expr-eval/pull/288
- CERT/CC Advisory https://kb.cert.org/vuls/id/263614
- https://www.kb.cert.org/vuls/id/263614
- https://www.npmjs.com/package/expr-eval
- https://www.npmjs.com/package/expr-eval-fork
Provider assertions
3certcc · cna
CVE-2025-12735
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 404226ce852251a3056564a63f7324dec80a45e9b1e0e283380239dc534c16e4
- Ingested
- 23 Sep 2026, 08:36:53 UTC
- Source record
- Official CVE record