Description
SurrealDB is a scalable, distributed, collaborative, document-graph database for the realtime web. Prior to 3.1.0, Document::purge_edges in surrealdb/core/src/doc/delete.rs automatically removed graph edge records with permissions disabled through opt.clone().with_perms(false) when a connected node was deleted, bypassing the edge table's PERMISSIONS FOR delete and PERMISSIONS FOR select clauses. This issue is fixed in version 3.1.0.
Published: 2026-07-15
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB is a scalable, distributed, collaborative, document-graph database for the realtime web. The vulnerability lies in its Document::purge_edges routine in surrealdb/core/src/doc/delete.rs. Prior to version 3.1.0, when a node is deleted, this routine automatically removes associated graph edge records that have their permissions disabled via opt.clone().with_perms(false). That removal bypasses the edge table’s PERMISSIONS FOR delete and PERMISSIONS FOR select clauses, allowing an attacker who can delete a node to erase related edges without proper authorization. This unexpected permission bypass can corrupt or expose relationships in the database and was fixed in version 3.1.0.

Affected Systems

The affected product is SurrealDB, the scalable document‑graph database from surrealdb:surrealdb. Versions prior to 3.1.0 are impacted. Any deployment using a pre‑3.1.0 release is susceptible.

Risk and Exploitability

The CVSS score of 5.4 indicates a medium severity vulnerability. The EPSS value is less than 1 %, suggesting a very low likelihood of exploitation in the wild at this time. It is not listed in the CISA KEV catalog. Based on the description, it is inferred that the likely attack vector is a capable attacker issuing a delete query against a node in the database. Attackers would need to execute a delete operation on a node, implying a local or privileged attacker with access to the database. The exploitation path therefore requires the ability to issue node‑deletion queries, after which the delete permissions for connected edges are bypassed.

Generated by OpenCVE AI on July 31, 2026 at 03:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.1.0 or later, which contains the fix for the edge permission bypass.
  • If an immediate upgrade is not possible, restrict delete privileges to authorized roles only and monitor node‑deletion events to prevent unintended edge removal.
  • Implement application‑level checks or custom scripts that identify sensitive relationships before executing node deletions, ensuring that critical edges are not purged automatically by the database engine.

Generated by OpenCVE AI on July 31, 2026 at 03:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-whwg-vh4f-pmmf SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted
History

Mon, 27 Jul 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Mon, 20 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 15 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Description SurrealDB is a scalable, distributed, collaborative, document-graph database for the realtime web. Prior to 3.1.0, Document::purge_edges in surrealdb/core/src/doc/delete.rs automatically removed graph edge records with permissions disabled through opt.clone().with_perms(false) when a connected node was deleted, bypassing the edge table's PERMISSIONS FOR delete and PERMISSIONS FOR select clauses. This issue is fixed in version 3.1.0.
Title SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted
Weaknesses CWE-285
CWE-863
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T14:50:35.228Z

Reserved: 2026-06-02T18:30:51.283Z

Link: CVE-2026-49997

cve-icon Vulnrichment

Updated: 2026-07-20T14:50:30.371Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T03:30:18Z

Weaknesses