Skip to main content
CVE-2025-71396VulnerabilityPublished Updated

Duplicate Advisory: SurrealDB no JavaScript script function default timeout could facilitate DoS

Affects surrealdbSource GCVE Database

0
Compare
Authoritative record:CVE-2025-71396· Low 2.3

Not known to be exploited · CVSS 2.3 Low : upgrade to 2.2.2 when convenient.

Data as of 30 Nov 2026, 18:36 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.02.3
EPSS
0.5% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.2.2, 2.0.5, 2.1.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Jul 2026

  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 30 Nov 2026.

What to do

Upgrade surrealdb to 2.2.2; surrealdb to 2.0.5; surrealdb to 2.1.5.

Affected software

ProductAffectedFixed in
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=2.2.0 <2.2.2
Fixed in
  • 2.2.2
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • <2.0.5
Fixed in
  • 2.0.5
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=2.1.0 <2.1.5
Fixed in
  • 2.1.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade SurrealDB to versions 2.0.5 or later, 2.1.5 or later, or 2.2.2 or later where this issue is fixed. If upgrading is not immediately possible, ensure that scripting is not enabled unless necessary, as it is disabled by default. Patch status is confirmed by version numbers.

Description

SurrealDB versions before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 do not enforce a default execution-time limit on embedded JavaScript functions when scripting is enabled. This allows an authenticated attacker to submit long-running JavaScript code that can exhaust server resources and cause a denial of service. Scripting is disabled by default, reducing exposure unless explicitly enabled.

References

Community reviews

Loading reviews…