CVE-2026-49997
MEDIUM 5.4CVSS 3.1SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted
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
- 15 Jul 2026
- Last modified
- 20 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-285CWE-863
- Also known as
- GHSA-whwg-vh4f-pmmf
- Sources
- NVDJSONOSV GHSA-whwg-vh4f-pmmfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | surrealdb | < 3.1.0 | 3.1.0 |
References
- https://github.com/surrealdb/surrealdb/commit/500f4060349580b9cbb9c07b8112a487551c4616 · WEB
- https://github.com/surrealdb/surrealdb/releases/tag/v3.1.0 · WEB
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-whwg-vh4f-pmmf · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-49997 · ADVISORY
- https://github.com/surrealdb/surrealdb/pull/242 · WEB
- https://github.com/surrealdb/surrealdb/commit/a80d1784cf75358441978bbd77688855e95f4578 · WEB
- https://github.com/surrealdb/surrealdb · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2026)