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 variab…
- CVSS
- 8.8High
- Chance of exploitation (EPSS)
- 0.72%
- Published
- Nov 21, 2026
- In the news
- Not yet
What to do
A serious access control flaw in Surrealdb that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 4.0.0
Affected versions
- Surrealdb
- 1.0.0 to before 4.0.0
Description
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 products
Get alerts for these →Timeline 1
Latest change: CVE-2026-134309 published (CVSS 8.8) (Nov 21, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Sat, Nov 21, 2026
- CVECVE-2026-134309 published (CVSS 8.8)CVE Program · 17:16 UTC
References 3
- github.com /surrealdb/surrealdb/security/advisories/GHSA-ffvm-mqh3-7986
- www.vulncheck.com /advisories/surrealdb-1.0.0-before-4.0.0-authorization-bypass-via-for-loop-variable-shadowing
- github.com /surrealdb/surrealdb/security/advisories/GHSA-ffvm-mqh3-7986