Skip to main content
VulnerabilityPublished Updated

CVE-2025-12735: expr-eval does not restrict functions passed to the evaluate function

Affects expr-evalSource GCVE Database

0
Compare
Authoritative record:CVE-2025-12735· Critical 9.8

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

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.19.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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmexpr-evalAffected
  • <=2.0.2
Fixed in–
npmexpr-eval-forkAffected
  • <3.0.1
Fixed in
  • 3.0.1

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

Community reviews

Loading reviews…