Skip to main content

Surrealdb: Duplicate Advisory: Custom API route lets authenticated callers override namespace/database scope via URL path

0
High
Published: 07/20/2026 (07/20/2026, 12:33:08 UTC)
Source: GCVE Database
Product: surrealdb

Description

SurrealDB versions before 3.2.0 contain a vulnerability where custom API routes do not properly validate namespace and database scope. This allows authenticated users to access or invoke endpoints across different namespaces or databases by manipulating the URL path. The flaw can lead to unauthorized data access or unintended operations within other tenants' scopes.

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected software

crates.ioghsa
surrealdb

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 10:07:19 UTC

Technical Analysis

SurrealDB versions prior to 3.2.0 fail to validate namespace and database scope in custom API routes. Authenticated users with valid credentials for any namespace or database can specify a different namespace/database in the URL path to access custom API endpoints belonging to other tenants. This vulnerability can result in unauthorized reading of sensitive data or triggering unintended operations across tenant boundaries. The issue is tracked as GHSA-3f6w-45q9-v69m and is classified under CWE-639 (Authorization Bypass Through User-Controlled Key).

Potential Impact

An attacker with valid credentials for any namespace or database can bypass intended access controls by specifying arbitrary namespace/database scopes in the URL path. This can lead to unauthorized access to sensitive data or execution of operations in other tenants' namespaces/databases, potentially compromising confidentiality and integrity. There are no known exploits in the wild reported at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links or official fix information is provided, users should monitor SurrealDB advisories for updates. Until a fix is available, restrict access to authenticated users carefully and consider limiting custom API route usage or adding additional validation controls to prevent scope override via URL path.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-3f6w-45q9-v69m
Osv Schema Version
1.4.0
Ecosystems
["crates.io"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a9c2648acd9273b49fc9e65

Added to database: 09/05/2026, 14:25:12 UTC

Last enriched: 09/07/2026, 10:07:19 UTC

Last updated: 10/01/2026, 23:09:48 UTC

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses