CVE-2026-134309

published 21 Nov 2026 · updated 23 Nov 2026

SurrealDB 1.0.0 before 4.0.0 Authorization Bypass via FOR Loop Variable Shadowing

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 4.0.0.

SurrealDB 1.0.0 before 4.0.0 contains an authorization bypass vulnerability that allows authenticated users to shadow protected $access, $auth, and $token variables by binding them as FOR loop variables. Attackers can wrap queries in nested FOR loops with forged values to satisfy table permission predicates, enabling unauthorized reads, modifications, or deletions as a VIEWER.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
surrealdb>=1.0.0 <4.0.04.0.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-134309 severity on Zeptric[![CVE-2026-134309](https://zeptric.io/badge/cve/CVE-2026-134309.svg)](https://zeptric.io/cve/CVE-2026-134309)