Surrealdb: Duplicate Advisory: Custom API route lets authenticated callers override namespace/database scope via URL path
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
Affected software
Run 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
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.
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 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.
External Links
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.