Skip to content
DayZeroHub
High Not yet writtenCVSS 8.7CVE-2026-137490

CVE-2026-137490: SurrealDB before 4.0.0 Authorization Bypass via JavaScript surrealdb.query() Bridge

surrealdb surrealdb

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-137490: high-severity vulnerability (CVSS 8.7) in surrealdb surrealdb.

What happened

Original description from the source: 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

High severity, CVSS 8.7.

Affected products and versions

surrealdb surrealdb < 4.0.0; surrealdb surrealdb 4.0.0 (fixed in 4.0.0)

ProductVersionsFixed in
surrealdb surrealdb< 4.0.0—
surrealdb surrealdb4.0.04.0.0

Action recommended by the source

Upgrade to a fixed version: 4.0.0.

Fixed in: 4.0.0

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-862

Relevant change history

  1. Published

    Preliminary advisory published.