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… (CVE-2025-71396)
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 scripting when scripting is enabled. This allows an authenticated attacker to submit long-running JavaScript functions that can exhaust server resources, causing a denial of service. Scripting is disabled by default, reducing exposure unless explicitly enabled.
AI Analysis
Technical Summary
This vulnerability (CVE-2025-71396) affects SurrealDB versions prior to 2.0.5, 2.1.x prior to 2.1.5, and 2.2.x prior to 2.2.2. When the embedded JavaScript scripting feature is explicitly enabled via command-line options (--allow-scripting or --allow-all), there is no enforced default execution-time limit on JavaScript functions. An authenticated attacker can exploit this by submitting long-running scripts that consume excessive server resources, leading to denial of service. The vulnerability is categorized under CWE-770 (Allocation of Resources Without Limits or Throttling).
Potential Impact
An authenticated attacker can cause a denial of service by exhausting server resources through long-running JavaScript functions. There is no impact on confidentiality or integrity, only availability is affected. Since scripting is disabled by default, the risk is limited to environments where scripting is explicitly enabled.
Mitigation Recommendations
Upgrade SurrealDB to version 2.0.5, 2.1.5, or 2.2.2 or later where this issue is fixed. If upgrading is not immediately possible, avoid enabling embedded JavaScript scripting features (--allow-scripting or --allow-all) to prevent exposure. Patch status is not explicitly stated in the input, but the affected versions indicate fixed versions exist. Check vendor advisories for official patches and updates.
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… (CVE-2025-71396)
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 scripting when scripting is enabled. This allows an authenticated attacker to submit long-running JavaScript functions that can exhaust server resources, causing a denial of service. Scripting is disabled by default, reducing exposure unless explicitly enabled.
CVSS v3.1
Score 6.5medium
Affected software
pkg:github/surrealdb/surrealdbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2025-71396) affects SurrealDB versions prior to 2.0.5, 2.1.x prior to 2.1.5, and 2.2.x prior to 2.2.2. When the embedded JavaScript scripting feature is explicitly enabled via command-line options (--allow-scripting or --allow-all), there is no enforced default execution-time limit on JavaScript functions. An authenticated attacker can exploit this by submitting long-running scripts that consume excessive server resources, leading to denial of service. The vulnerability is categorized under CWE-770 (Allocation of Resources Without Limits or Throttling).
Potential Impact
An authenticated attacker can cause a denial of service by exhausting server resources through long-running JavaScript functions. There is no impact on confidentiality or integrity, only availability is affected. Since scripting is disabled by default, the risk is limited to environments where scripting is explicitly enabled.
Mitigation Recommendations
Upgrade SurrealDB to version 2.0.5, 2.1.5, or 2.2.2 or later where this issue is fixed. If upgrading is not immediately possible, avoid enabling embedded JavaScript scripting features (--allow-scripting or --allow-all) to prevent exposure. Patch status is not explicitly stated in the input, but the affected versions indicate fixed versions exist. Check vendor advisories for official patches and updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6g9r-xqrf-34xh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71396"]
- Ecosystems
- []
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a5ba17e44ab8fbf7c789bae
Added to database: 07/18/2026, 15:53:34 UTC
Last enriched: 08/13/2026, 19:15:29 UTC
Last updated: 09/01/2026, 10:52:06 UTC
Views: 103
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.