CVE-2026-49997 SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted
Attackers can bypass delete permissions on graph edges when deleting connected nodes, allowing unauthorized data modification in SurrealDB.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-49997?
CVE-2026-49997 is a medium-severity missing authorization vulnerability in surrealdb, published on 15 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-49997?
2 open source packages ship an affected version, including surrealdb.
| Package | Affected | Fixed in |
|---|---|---|
surrealdb crates.io | All versions | 3.1.0 |
surrealdb crates.io | All versions | 3.1.0 |
How do I fix CVE-2026-49997?
Upgrade surrealdb to 3.1.0 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-49997 being exploited?
There is no known exploitation of CVE-2026-49997 in the wild and no public exploit code.
Sources
Also known as GHSA-whwg-vh4f-pmmf.