high8.7
CVE-2026-137490
SurrealDB before 4.0.0 contains an authorization bypass vulnerability that allows restricted subjects to execute arbitrary queries by calling the JavaScript su…
Impact
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.
An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Surrealdb)
| Product | Affected versions |
|---|---|
| Surrealdb | before 4.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-fq69-wr4w-v3gm
- https://www.vulncheck.com/advisories/surrealdb-before-4.0.0-authorization-bypass-via-javascript-surrealdb-query-bridge
- https://github.com/advisories/GHSA-qwm5-4hhw-6vmx
- https://nvd.nist.gov/vuln/detail/CVE-2026-137490