Function Capability Bypass in SurrealDB by SurrealDB Inc.
CVE-2026-134292
9.3CRITICAL
What is CVE-2026-134292?
SurrealDB versions prior to 4.0.0 are vulnerable to a function capability bypass due to improper checks in the embedded JavaScript scripting engine. This flaw enables authenticated users, who are normally restricted from accessing certain built-in functions in SurrealQL, to inadvertently execute these functions via the surrealdb.functions interface. The issue arises when the internal dispatchers for synchronous and asynchronous function calls do not adequately enforce capability checks, posing a potential risk of unauthorized access to sensitive functions.
Affected Version(s)
surrealdb 1.0.0 < 4.0.0
surrealdb 4.0.0
