Authorization bypass in SurrealDB JavaScript query bridge
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-862.
Summary
SurrealDB before 4.0.0 contains a missing authorization check in its JavaScript surrealdb.query() bridge. Restricted subjects permitted to run a specific script can bypass the query capability gate and execute queries beyond their predefined operations. An attacker with low privileges can run such scripts over the network to read, change and delete data.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
SurrealDB before 4.0.0 contains an authorization bypass vulnerability that allows restricted subjects to execute arbitrary queries by calling the JavaScript surrealdb.query() bridge. Attackers permitted to run a specific script can bypass the Capabilities::allows_query() gate in the query module to execute unrestricted queries beyond their predefined operations.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade surrealdb to version 4.0.0 or later, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- Fix · CNA surrealdb (surrealdb) Fixed in 4.0.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
surrealdb 4.0.0
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-98922 Server-side request forgery in SurrealDB ML model export leaks session tokensPriority LOW 24
- TI-2026-98921 Information disclosure in SurrealDB RELATE endpoint override errorsPriority LOW 24
Timeline
- 2026-11-26 Threatist record created from CVE-2026-137490
- 2026-11-27 Alias added: GHSA-qwm5-4hhw-6vmx
References
More surrealdb vulnerabilities
- TI-2026-96302 SurrealDB Memory Exhaustion via GraphQL WebSocket Upgrade CVSS 4.0HIGH 8.7
- TI-2026-84301 MCP session hijack in SurrealDB via BoundSubject collision CVSS 4.0HIGH 8.6
- TI-2026-96306 Out-of-bounds read in SurrealKV InternalKeyRef decoder CVSS 4.0HIGH 8.3
- TI-2026-96310 Authorization bypass in SurrealDB via COMPUTED field permissions CVSS 4.0HIGH 7.1
- TI-2026-96305 Decimal overflow in SurrealDB math functions crashes the server CVSS 4.0HIGH 7.1
- TI-2026-96295 Information disclosure in SurrealDB via ON DELETE REJECT errors CVSS 4.0HIGH 7.1
Sources
- CVE-2026-137490 · CVE Program
- CVE-2026-137490 · NVD
- FIRST EPSS
- GHSA-qwm5-4hhw-6vmx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences