CVE-2026-134292 is a critical flaw in SurrealDB 1.0.0 through versions before 4.0.0: authenticated users who are blocked from built-in functions can still run them through the embedded JavaScript scripting engine.
What Is It
The flaw is in SurrealDB's embedded JavaScript scripting engine. The surrealdb.functions bridge calls the internal fnc::synchronous() and fnc::asynchronous() dispatchers without enforcing function capability checks. If an authenticated user is denied built-in functions in SurrealQL, they can still run those functions by calling them through surrealdb.functions from embedded JavaScript.
The weakness is classified as CWE-862 (Missing Authorization). VulnCheck ([email protected]) assigned the CVE, and it was published to NVD on 2026-11-21. Its NVD status is currently "Deferred."
Why It Matters
Capability restrictions are how SurrealDB operators limit which built-in functions users may call. This bug lets users get around those limits whenever the JavaScript engine is reachable, so a server can be less locked down than its operators think.
VulnCheck scores the flaw as critical:
- CVSS 3.1: 9.8 CRITICAL (
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) - CVSS 4.0: 9.3 CRITICAL
Both vectors rate the attack as network-reachable, low complexity, needing no privileges or user interaction, with high impact on confidentiality, integrity and availability. Note that the written description refers to authenticated users, while the CVSS vectors score privileges required as None.
The supplied CISA KEV entry is empty. There is no KEV listing for this CVE, so CISA has not confirmed active exploitation. The supplied data contains no information on exploitation in the wild.
What's Vulnerable
- Vendor/Product: SurrealDB / surrealdb
- Package:
pkg:cargo/surrealdb - Affected: version 1.0.0 up to, but not including, 4.0.0 (semver)
- Unaffected: 4.0.0
The supplied NVD data lists no CPE entries.
Patch Status
The affected-version data lists SurrealDB 4.0.0 as unaffected. Upgrade deployments running versions 1.0.0 through 3.x to 4.0.0 or later. There is no KEV entry, so no CISA required action or due date applies. See the SurrealDB GitHub security advisory (GHSA-5w6j-qm42-4rc2) and the VulnCheck advisory for vendor guidance.