SurrealDB: flaw lets attackers do things they have no permission for
CVE-2026-137490 · published 26 Nov 2026
CVE-2026-137490 is a serious security flaw in SurrealDB, rated 8.8 out of 10.
The official 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.
We have no report of attacks yet. Plan the update now, before attackers start.
How to check if you are affected, and how to fix it
The full analysis (affected versions, step-by-step check, fix, what to do if you cannot update yet, and signs of an attack) is free in your SegfaultSec dashboard. You also get an alert when a new vulnerability matches the software on your website.
Read the full analysisSources