Home › Vulnerabilities › surrealdb
SurrealDB Versions Before 4.0.0 Affected by Authorization Bypass, SSRF and Information Disclosure Flaws
NVD published three SurrealDB vulnerabilities affecting versions before 4.0.0. The most severe, rated HIGH at CVSS 8.7, lets restricted subjects run unrestricted queries through a JavaScript bridge, and the other two are rated MEDIUM.
What to look into
- 3 vulnerabilities in surrealdb: 1 high, 2 medium (CVSS up to 8.7).
- None of them is known to be exploited yet.
- Start with CVE-2026-137490 (8.7 high): 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 permit… An attacker with a normal user account can exploit this over the network, without any user action.
- 0 of 3 can be attacked over the network without logging in.
- Kinds of flaws: Missing Authorization; Server-Side Request Forgery (SSRF); Generation of Error Message Containing Sensitive Information.
Key points
- CVE-2026-137490 is rated HIGH (CVSS 8.7) and allows restricted subjects to run unrestricted queries via the JavaScript surrealdb.query() bridge.
- CVE-2026-137489 is a MEDIUM (5.3) SSRF flaw in ML export that can redirect authenticated requests, according to the record, capturing session tokens.
- CVE-2026-137488 is a MEDIUM (5.3) information disclosure flaw that exposes hidden edge endpoints to users with CREATE and UPDATE permission on edge tables.
- All three affect SurrealDB before 4.0.0; the records give no workarounds and no exploitation evidence.
Overview
NVD published three SurrealDB vulnerabilities together on 26 November 2026. All three affect versions before 4.0.0 and cover different weaknesses: an authorization bypass, a server-side request forgery flaw, and an information disclosure issue. The records do not state that any of them has been exploited.
Most severe: authorization bypass
CVE-2026-137490 carries the batch's highest rating, HIGH with a CVSS score of 8.7. According to the record, a restricted subject can run arbitrary queries by calling the JavaScript surrealdb.query() bridge. A user permitted to run a specific script can get past the Capabilities::allowsquery() check in the query module and perform operations beyond those predefined for them.
Medium-severity flaws
CVE-2026-137489 (MEDIUM, 5.3) is a server-side request forgery issue in the remote HTTP client router. Raw model names are passed to Url::join during ML export, so an absolute URL supplied as the model name in ExportMl or ExportBytesMl commands can redirect authenticated requests. The record says this can capture session tokens.
CVE-2026-137488 (MEDIUM, 5.3) lets authenticated users read edge endpoints that SELECT permissions hide, using InOverride and OutOverride error messages. A user with CREATE and UPDATE permission on an edge table can re-RELATE an existing edge with mismatched endpoints and recover the stored in and out record IDs, even where row- or field-level restrictions apply.
Who is affected and what to do
The records apply to SurrealDB releases before 4.0.0. They do not describe detection methods or configuration workarounds. Administrators should first identify deployments below 4.0.0, then prioritize the authorization bypass because of its score. Reviewing which accounts can run scripts that call the query bridge, can use ML export commands, or hold edge table write permissions is a reasonable step while patching is planned.
What to do
- Identify SurrealDB deployments running a version before 4.0.0 and plan an upgrade to 4.0.0 or later.
- Review which accounts can run scripts that call surrealdb.query() and restrict them to what they need.
- Review which accounts can use ExportMl or ExportBytesMl commands and which hold CREATE and UPDATE permission on edge tables.
The 3 vulnerabilities
- CVE-2026-137490 8.7 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…
- CVE-2026-137489 5.3 SurrealDB before 4.0.0 contains a server-side request forgery vulnerability in the remote HTTP client router that passes raw model names to Url::join during ML export. Attackers can supply an absolute URL as the model name in ExportMl or E…
- CVE-2026-137488 5.3 SurrealDB before 4.0.0 contains an information disclosure vulnerability that allows authenticated users to read SELECT-hidden edge endpoints through InOverride/OutOverride error messages. Attackers with CREATE and UPDATE permission on an e…
Frequently asked questions
How many surrealdb vulnerabilities were published on November 26, 2026?
3 vulnerabilities: 1 high, 2 medium, with CVSS scores up to 8.7.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-137490 (CVSS 8.7): 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 permit…