Auth bypass in Surrealdb
CVE-2026-102876
SurrealDB before 3.3.0 contains an authorization bypass in HTTP session construction where check_auth() verifies credentials against Surreal-Auth-NS and Surreal-Auth-DB headers but constructs sessions using Surreal-NS and Surreal-DB headers without validating access permissions. Attackers can authenticate as a user from one tenant while selecting another tenant's namespace and database to read, create, and modify records across tenant boundaries.
Vulnerability class: IDOR (Insecure Direct Object Reference)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/surrealdb/surrealdb (product)
- github.com/surrealdb/surrealdb/blob/v3.2.4/surrealdb/server/src/ntw/auth.rs (technical-description)
- github.com/surrealdb/surrealdb/commit/5000e233b4a8b96689c82715c172061dcf711d31 (patch)
- github.com/surrealdb/surrealdb/releases/tag/v3.3.0 (release-notes)
- github.com/surrealdb/surrealdb/security/advisories/GHSA-vx2p-7hhm-wv62 (vendor-advisory)
- www.vulncheck.com/advisories/surrealdb-before-3.3.0-cross-tenant-access-via-hea… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-102876?
- CVE-2026-102876 is a high-severity vulnerability in Surrealdb, classified under Authorization Bypass Through User-Controlled Key. CVSS score: 8.1/10. Published 2026-09-29.
- How severe is CVE-2026-102876?
- High severity. CVSS v3 base score is 8.1 out of 10.