SurrealDB: Custom API route lets authenticated callers override namespace/database scope via URL path (CVE-2026-63735)
Description
SurrealDB versions prior to 3.2.0 contain a vulnerability where an authenticated user scoped to one namespace/database can invoke a custom API belonging to another namespace/database by manipulating the URL path. This allows the user to access or modify data in another tenant's scope if the endpoint permissions are permissive. The vulnerability does not allow unauthenticated access or affect single-tenant deployments. Versions 3.2.0 and later include a fix that validates the namespace/database against the caller's authenticated scope, rejecting unauthorized cross-tenant access.
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-63735) in SurrealDB affects the custom API route `/api/{namespace}/{database}/{endpoint}` where the namespace and database from the URL are applied to the caller's session without verifying that the caller is authorized for that scope. Because custom API handlers run with permissions disabled (definer's rights), the endpoint's own permissions clause is the only access control, which can be bypassed if set to 'PERMISSIONS FULL'. An attacker with valid credentials for any namespace/database can invoke APIs in other namespaces/databases, potentially reading or writing data across tenant boundaries. The issue is fixed in SurrealDB 3.2.0 by enforcing validation of the requested namespace/database against the caller's authenticated scope, returning 403 Forbidden if unauthorized.
Potential Impact
An attacker with valid credentials scoped to any namespace/database can invoke custom APIs in other namespaces/databases, potentially accessing or modifying data they should not have access to. This includes reading data from tables with 'PERMISSIONS NONE' since the handler runs with permissions disabled, and triggering writes or side effects. The vulnerability does not allow unauthenticated access or affect single-tenant deployments or deployments where callers have instance-wide root scope.
Mitigation Recommendations
A patch is available in SurrealDB version 3.2.0 and later that enforces validation of namespace/database scope against the caller's authenticated permissions, rejecting unauthorized cross-tenant API calls with a 403 Forbidden response. Users unable to upgrade should disable the custom API HTTP route where not required, treat separate deployments as tenant isolation boundaries instead of namespaces/databases, and prefer 'PERMISSIONS WHERE' clauses that check authenticated identity rather than 'PERMISSIONS FULL' to reduce exposure.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-848m-r628-vrxw
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63735"]
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a9c2648acd9273b49fc9e63
Added to database: 09/05/2026, 14:25:12 UTC
Last enriched: 09/07/2026, 10:07:24 UTC
Last updated: 10/19/2026, 06:48:18 UTC
Views: 52
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.