CVE-2026-137490

8.8High

Published Nov 26, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

8.8CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
Low
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-862

What an attacker gets

Authenticated attackers can execute arbitrary database queries by bypassing authorization checks. This requires an account with permission to run JavaScript scripts.

Root cause

The JavaScript surrealdb.query() bridge fails to enforce the Capabilities::allows_query() authorization gate.

Affected versions

SurrealDB before 4.0.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to SurrealDB 4.0.0 or later. If you cannot upgrade, disable the JavaScript execution functionality in your configuration.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-137490

More fully triaged vulnerabilities you may want to check next.