SurrealDB versions before 3.1.0 contain an authorization bypass vulnerability where authenticated users can spoof composite record-id field values by writing to editable body fields. Attackers can bypass permission rules that gate access on id components like tenant isolation by setting same-named body fields to spoofed values that permission checks incorrectly read instead of the immutable id key.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-6vg3-hgrw-p5gf Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.3 · surrealdbNVD modified 2026-10-08 16:17
Affected (CPE criteria) 1
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
References 2
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-6vg3-hgrw-p5gf Mitigation, Vendor Advisory
- https://www.vulncheck.com/advisories/surrealdb-before-authorization-bypass-via-composite-record-id Third Party Advisory