CVE-2025-12735
CVE-2025-12735
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.8
CVE-2025-12735
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.
- Record
CVE-2025-12735- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
EUVDEUVD-2025-37820
9.8
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.
- Record
EUVD-2025-37820- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-jc85-fpwf-qm7x
8.6
expr-eval does not restrict functions passed to the evaluate function
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 variables object into the evaluate() function and trigger arbitrary code execution.
- Record
GHSA-jc85-fpwf-qm7x- CVSS 4.0
- 8.6 High
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-94
- Updated
- 2026-11-02
NVD
9.8
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.
- Record
CVE-2025-12735- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-94
- Updated
- 2026-11-02
OSV
9.8
CVE-2025-12735
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.
- Record
CVE-2025-12735- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-jc85-fpwf-qm7x
8.6
expr-eval does not restrict functions passed to the evaluate function
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 variables object into the evaluate() function and trigger arbitrary code execution.
- Record
GHSA-jc85-fpwf-qm7x- CVSS 4.0
- 8.6 High
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-94
- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2025-12735
9.8
CVE-2025-12735 in expr-eval - Patched by Root
Root has patched CVE-2025-12735 in the expr-eval package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2025-12735- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1774830287 No score
TuxCare security update for expr-eval (2 CVEs)
TuxCare rebuilt expr-eval to address 2 CVEs. Fixed in 2.0.2-tuxcare.1.
- Record
CLSA-2026-1774830287- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
expr-evalnpm |
through 2.0.2 | None known |
expr-eval-forknpm |
through 3.0.0 | 3.0.1 |
expr-evalTuxCare:npm From an advisory covering 2 CVEs |
2.0.2-tuxcare.0 up to 2.0.2-tuxcare.1, plus listed versions 2.0.2 |
2.0.2-tuxcare.1 |
expr-eval-forknpm |
before 3.0.1 | 3.0.1 |
expr-evalRoot:npm |
before 2.0.2-aikido.3 | 2.0.2-aikido.32.0.2-aikido.4 |
@rootio/expr-evalRoot:npm |
before 2.0.2-root.io.1 | 2.0.2-root.io.12.0.2-root.io.22.0.2-root.io.32.0.2-root.io.4 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | alnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce | 2025-11-20 |
| PoC in GitHub | AN5I/cve-2025-12735-expr-eval-rce | 2025-11-21 |
| PoC in GitHub | alecasg555/safe-expr-eval | 2025-11-27 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, exploits, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-12735 is a critical vulnerability (CVSS 9.8) in Silentmatt Expr-eval, published November 5, 2025. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.76%, the 78th percentile. Fixed in expr-eval-fork 3.0.1.
References
github.com/silentmatt/expr-eval
github.com/jorenbroekema/expr-eval
npmjs.com/package/expr-eval-fork
npmjs.com/package/expr-eval
github.com/silentmatt/expr-eval/pull/288
github.com/advisories/GHSA-jc85-fpwf-qm7x
Show 6 moreShow less
kb.cert.org/vuls/id/263614
github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js
nvd.nist.gov/vuln/detail/CVE-2025-12735
github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43
github.com/silentmatt/expr-eval/pull/289
github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12735.json