CVE-2026-137490
SurrealDB before 4.0.0 Authorization Bypass via JavaScript surrealdb.query() Bridge
8.7
Description
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.
Affected products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| surrealdb | surrealdb | 0 → <4.0.0 | 4.0.0 | CVE.org |