News · SurrealDB · 2 min read
Event date: · Published:
SurrealDB fixes critical capability bypass in embedded JavaScript engine
SurrealDB disclosed CVE-2026-134292, a critical flaw that let authenticated users bypass its capability-based permission system through the embedded JavaScript bridge. The fix ships in version 4.0.0.
SurrealDB disclosed a critical vulnerability, tracked as CVE-2026-134292, on November 21, 2026, in a GitHub Security Advisory. The flaw let authenticated users call built-in SurrealQL functions they had been explicitly denied access to, bypassing SurrealDB's capability-based permission system through its embedded JavaScript bridge.
What changed
- GHSA ID is GHSA-cr6h-wmmv-79vp, tracked as CVE-2026-134292
- Severity is rated Critical, with a CVSS score of 9.3 under v4.0 scoring and 9.8 under v3.1 scoring
- The weakness is classified as CWE-862, Missing Authorization
- Affected versions run from SurrealDB 1.0.0 up to but not including 4.0.0, when embedded JavaScript is enabled
- Root cause: the
surrealdb.functionsJavaScript bridge calls the internalfnc::synchronous()andfnc::asynchronous()dispatchers without enforcing SurrealQL function-capability checks - The fix ships in SurrealDB 4.0.0; the attack vector is network-based, needs only low privileges, and requires no user interaction, with impact rated High across confidentiality, integrity, and availability
What it means for people building with AI
SurrealDB is increasingly used as an embeddable multi-model database behind AI agent and application backends. A bypass of its capability-based permission system means any app relying on SurrealDB to sandbox less-trusted callers, including AI agents given restricted database access, could have that sandbox silently defeated.
What to do next
Teams running SurrealDB with embedded JavaScript enabled should upgrade to version 4.0.0, where the fix ships. The advisory is separate from a SurrealDB MCP server SQL-injection and CLI credential-leak issue disclosed the same week under GHSA-c88v-jgq3-49rc, which has a different root cause.
Sources
- SurrealDB Embedded JavaScript Engine Capability Check Bypass (GitHub Security Advisories, November 21, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.