---
id: CVE-2025-71396
title: >-
  SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 does not
  enforce a default execution-time limit on embedded JavaScript scripting
  functions when the scripting capability is explicitly enabled (via
  --allow-scripting or -…
summary: >-
  SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 does not
  enforce a default execution-time limit on embedded JavaScript scripting
  functions when the scripting capability is explicitly enabled (via
  --allow-scripting or -…
severity: none
cwe:
  - CWE-770
published: '2026-07-18'
updated: '2026-07-18'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71396'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3824-qmfq-2qv7
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-javascript-scripting
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-07-19T05:29:21.279Z'
epss: 0.00551
epssPercentile: 0.43687
---

## Overview

SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 does not enforce a default execution-time limit on embedded JavaScript scripting functions when the scripting capability is explicitly enabled (via --allow-scripting or --allow-all). An authenticated attacker can submit long-running JavaScript functions to exhaust server resources and cause a denial of service. Scripting is disabled by default.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
