# CVE-2026-134309

Authorization bypass in SurrealDB FOR-loop variable shadowing allows unauthorized data access

- Page: https://www.vulneraibility.com/cve/CVE-2026-134309
- CVSS: 8.7
- Known exploited: not in CISA KEV as of our last sync
- EPSS: 0.57% (percentile 47.9)
- Weakness: CWE-863
- Also known as: GHSA-ffvm-mqh3-7986
- Published: 2026-11-21

## Affected versions

- surrealdb: affected >= 1.0.0 and < 4.0.0; fixed in 4.0.0

A version outside these ranges is not a statement that it is unaffected.

## Impact

Authenticated users can bypass table permissions by shadowing $access/$auth/$token in FOR loops to read, modify, or delete data as a VIEWER.

## Action

Patch when possible

## Recommendation

Upgrade to SurrealDB 4.0.0+, audit queries and restrict DB user privileges.

## References

- [advisory] https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ffvm-mqh3-7986
- [advisory] https://www.vulncheck.com/advisories/surrealdb-1.0.0-before-4.0.0-authorization-bypass-via-for-loop-variable-shadowing

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
