{"id":"CVE-2026-49997","state":"PUBLISHED","title":"SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted","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.","publishedAt":"2026-07-15T16:14:03.602Z","updatedAt":"2026-07-20T14:50:35.228Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["surrealdb surrealdb"],"affected":[{"vendor":"surrealdb","product":"surrealdb","versions":[{"version":"< 3.1.0","status":"affected"}]}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-whwg-vh4f-pmmf","https://github.com/surrealdb/surrealdb/commit/500f4060349580b9cbb9c07b8112a487551c4616","https://github.com/surrealdb/surrealdb/releases/tag/v3.1.0"],"weaknesses":["CWE-285","CWE-863"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49997.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49997","state":"PUBLISHED","datePublished":"2026-07-15T16:14:03.602Z","dateUpdated":"2026-07-20T14:50:35.228Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-02T18:30:51.283Z"},"containers":{"cna":{"title":"SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted","descriptions":[{"lang":"en","value":"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":[{"vendor":"surrealdb","product":"surrealdb","versions":[{"version":"< 3.1.0","status":"affected"}]}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-whwg-vh4f-pmmf","name":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-whwg-vh4f-pmmf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/surrealdb/surrealdb/commit/500f4060349580b9cbb9c07b8112a487551c4616","name":"https://github.com/surrealdb/surrealdb/commit/500f4060349580b9cbb9c07b8112a487551c4616","tags":["x_refsource_MISC"]},{"url":"https://github.com/surrealdb/surrealdb/releases/tag/v3.1.0","name":"https://github.com/surrealdb/surrealdb/releases/tag/v3.1.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-285","lang":"en","description":"CWE-285: Improper Authorization","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"CWE-863: Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-15T16:14:03.602Z"},"source":{"advisory":"GHSA-whwg-vh4f-pmmf","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-20T14:50:19.998819Z","id":"CVE-2026-49997","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-20T14:50:35.228Z"}}]}}}