{"id":"CVE-2026-49997","published":"2026-07-15T16:14:03Z","modified":"2026-07-20T14:50:35Z","title":"SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00347,"percentile":0.29059,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-whwg-vh4f-pmmf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/surrealdb/surrealdb/commit/500f4060349580b9cbb9c07b8112a487551c4616","tags":["x_refsource_MISC"]},{"url":"https://github.com/surrealdb/surrealdb/releases/tag/v3.1.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.81},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["< 3.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T14:50:19.998819Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"surrealdb","vulnerableRanges":["<3.1.0"],"patched":["3.1.0"],"from":["GHSA-whwg-vh4f-pmmf"],"provenance":"source"}],"summary":{"text":"The SurrealDB database (surrealdb/core, in the Document::purge_edges routine of doc/delete.rs) fails to enforce the edge table's delete and select permissions when a connected node is deleted, because graph edges are removed with permissions disabled. An attacker with network access and low-privileged authenticated access, without any user interaction, can delete a node and thereby remove graph edge records that the edge table's PERMISSIONS FOR delete and PERMISSIONS FOR select clauses should have protected, in versions prior to 3.1.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:38Z"},"euvd":{"id":"EUVD-2026-44713","exploited":false,"provenance":"source"}}