Skip to content
Blog

SurrealDB · Gladys Assistant · open source

SurrealDB and Gladys Assistant: JavaScript Capability Bypass and Command Injection — CVE-2026-134292 and CVE-2026-133500

CVE-2026-134292 in SurrealDB (capability bypass via JavaScript, fixed in 4.0.0) and CVE-2026-133500 in Gladys Assistant (command injection, fixed in 4.72.0).

4 min readCVE-2026-134292CVE-2026-133500

Two self-hosted open source projects picked up critical-rated CVEs this week: SurrealDB, a multi-model database, and Gladys Assistant, a home automation platform. NVD published them on November 21 and 20, 2026.

The good news: public data identifies a fixed version for both. The less good news: in both cases, the critical score rests on a flaw that bypasses a safeguard the admin thought was in place.

ProjectCVECVSS 3.1Score sourceFlaw classVersions
SurrealDBCVE-2026-1342929.8VulnCheck (CNA)Missing authorization (CWE-862)1.0.0 up to, not including, 4.0.0
Gladys AssistantCVE-2026-1335009.1VulDB (CNA)OS command injection (CWE-78)up to 4.71.0

NVD has marked both entries Deferred: no analysis and no CPE configuration on its side. Neither is in CISA KEV at the time of writing.


SurrealDB — CVE-2026-134292

FieldValue
CVSS 3.1 (VulnCheck)9.8 (CRITICAL) — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 4.0 (VulnCheck)9.3 (CRITICAL)
NVD published2026-11-21
Versions1.0.0 and later, before 4.0.0

SurrealDB lets you write embedded JavaScript functions right inside SurrealQL queries. The server also has a capabilities system: admins can deny specific built-in functions to limit what an authenticated user can do.

According to NVD, the surrealdb.functions bridge, which lets JavaScript call SurrealQL functions, goes through the internal fnc::synchronous() and fnc::asynchronous() dispatchers without enforcing capability checks. A user denied a function in SurrealQL can simply call it from JavaScript instead.

Read the vector carefully

The description talks about authenticated users, yet VulnCheck's CVSS 3.1 vector says PR:N (no privileges required). NVD hasn't weighed in. In practice, your risk depends on your setup: who can open a session on the database (guest access, application accounts, end users through access rules), and whether JavaScript scripting is enabled.

What the flaw really breaks is a design assumption: if your security model relies on having denied certain built-in functions (network, files…), that barrier doesn't hold while scripting is on.

Fix: NVD places vulnerable versions before 4.0.0. The references point to the project's GitHub advisory (GHSA-5w6j-qm42-4rc2) and VulnCheck's advisory. Check them for the recommended version on your branch, especially if you're still on 1.x or 2.x, where moving to 4.0 is a major upgrade.


Gladys Assistant — CVE-2026-133500

FieldValue
CVSS 3.1 (VulDB)9.1 (CRITICAL) — AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS 4.0 (VulDB)8.5 (HIGH)
NVD published2026-11-20
Versionsup to 4.71.0
Fix4.72.0

The bug lives in the backup restore endpoint (gateway.downloadBackup.js): the file_url parameter ends up in an OS command injection. VulDB says an exploit is publicly available.

The vector says PR:H: you need high privileges on the Gladys instance. What pushes the score up is S:C: the command runs on the host, beyond the application. For a home automation box, that host is often a Raspberry Pi or mini PC on the home or office network, with access to connected devices.

Fix: NVD states that version 4.72.0 mitigates the issue, and the references link to its release notes.


Detection

  • SurrealDB: queries in the logs containing JavaScript functions (function() { … }) that call surrealdb.functions; unexpected network calls or file access from the SurrealDB process; users who shouldn't be running scripts.
  • Gladys Assistant: calls to the backup restore endpoint with an unusual file_url; child processes spawned by Gladys (shell, curl, wget); unknown Gladys admin accounts.

Mitigation

  1. SurrealDB: upgrade to a fixed version per the advisory. Until then, disable JavaScript scripting if you don't use it (server capabilities option), and restrict which accounts can open a session.
  2. Gladys Assistant: move to 4.72.0 or later. Don't expose the interface to the internet without a VPN, and keep admin accounts to a minimum.
  3. Both: run the services under a dedicated user with no unnecessary rights on the host. That caps what a command execution can do.

Why continuous monitoring matters for self-hosted software

Self-hosted open source projects rarely have a vendor bulletin or an alert channel: the CVE lands on NVD, a fix ships on GitHub, and you have to notice.

With cveo.tech, track your self-hosted software and its versions, and get an alert as soon as a critical CVE affects it.

Know which CVEs hit the versions you run.

Add the product and its version: cveo.tech lists the CVEs that affect it right away, then alerts you by email when a new one affects it — including before NVD has finished its analysis. Free, an account is all it takes.

Every Monday

The week's critical CVEs, in your inbox

One email a week: the CVSS ≥ 9 vulnerabilities published in the last seven days, plus our latest analyses. Nothing else.

Double opt-in by email. Unsubscribe in one click, any time.