CVE-2025-12735: expr-eval does not restrict functions passed to the evaluate function
Affects expr-evalSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical : upgrade to 3.0.1 as a priority.
Data as of 27 Nov 2026, 04:44 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 9.8 |
|---|
- Patch
- Available – fixed in 3.0.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 5 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade expr-eval-fork to 3.0.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmexpr-eval | Affected
| Fixed in– |
| npmexpr-eval-fork | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should upgrade to expr-eval version 3.0.1 or later where this vulnerability is fixed. Since a patch is available, applying the official fix is the recommended remediation. No additional mitigations are specified by the vendor.
Description
The expr-eval JavaScript library contains a vulnerability where the evaluate() function does not properly restrict functions passed via the variables object, allowing an attacker to execute arbitrary code. This flaw affects versions up to 2.0.2 and before 3.0.1. A fix is available in version 3.0.1. The vulnerability has a high severity score of 8.6 CVSS 4.0 and is related to improper input validation leading to code execution.
References
- nvd.nist.gov/vuln/detail/CVE-2025-12735 (opens in a new tab)
- github.com/silentmatt/expr-eval/pull/288 (opens in a new tab)
- github.com/silentmatt/expr-eval/pull/289 (opens in a new tab)
- github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43 (opens in a new tab)
- github.com/jorenbroekema/expr-eval (opens in a new tab)
- github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js (opens in a new tab)
- github.com/silentmatt/expr-eval (opens in a new tab)
- kb.cert.org/vuls/id/263614 (opens in a new tab)
- kb.cert.org/vuls/id/263614 (opens in a new tab)
- npmjs.com/package/expr-eval (opens in a new tab)
- npmjs.com/package/expr-eval-fork (opens in a new tab)