Surrealdb: Duplicate Advisory: Custom API route lets authenticated callers override namespace/database scope via URL path
Affects surrealdbSource GCVE Database
CVSS 8.1 High.
Data as of 7 Sep 2026, 10:07 UTC
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| crates.iosurrealdb | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
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.
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.