Moderate severityNVD Advisory· Published Jul 15, 2026· Updated Jul 20, 2026
SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted
CVE-2026-49997
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
surrealdbcrates.io | < 3.1.0 | 3.1.0 |
Affected products
1Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-whwg-vh4f-pmmfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-49997ghsaADVISORY
- github.com/surrealdb/surrealdb/commit/500f4060349580b9cbb9c07b8112a487551c4616ghsax_refsource_MISCWEB
- github.com/surrealdb/surrealdb/commit/a80d1784cf75358441978bbd77688855e95f4578ghsaWEB
- github.com/surrealdb/surrealdb/pull/242ghsaWEB
- github.com/surrealdb/surrealdb/releases/tag/v3.1.0ghsax_refsource_MISCWEB
- github.com/surrealdb/surrealdb/security/advisories/GHSA-whwg-vh4f-pmmfghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.