Every CVE Search/ Get API key

CVE-2025-12735

CVE-2025-12735

9.8 CriticalPublic exploitFix available

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

1.76%Up 1.7 points since Nov 5, 2025
90%50%10%1%

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 CriticalCVSS: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 CriticalCVSS: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 HighCVSS: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 CriticalCVSS: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 CriticalCVSS: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 HighCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
expr-eval
npm
through 2.0.2 None known
expr-eval-fork
npm
through 3.0.0
3.0.1
expr-eval
TuxCare: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-fork
npm
before 3.0.1
3.0.1
expr-eval
Root:npm
before 2.0.2-aikido.3
2.0.2-aikido.32.0.2-aikido.4
@rootio/expr-eval
Root: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.

Public exploits
SourceLinkDate
PoC in GitHubalnashawatirohwederb2167-max/cve-2025-12735-expr-eval-rce2025-11-20
PoC in GitHubAN5I/cve-2025-12735-expr-eval-rce2025-11-21
PoC in GitHubalecasg555/safe-expr-eval2025-11-27

History

History
RecordedChangedSources
affected, exploits, facts
first indexedCVE 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

Show 6 moreShow less
MoveEnter Open