---
id: CVE-2026-109340
title: >-
  SurrealDB from 3.1.0 before 3.3.0 contains an authorization bypass
  vulnerability that allows authenticated users to delete protected graph edges
  by triggering a REFERENCE ON DELETE CASCADE
summary: >-
  SurrealDB from 3.1.0 before 3.3.0 contains an authorization bypass
  vulnerability that allows authenticated users to delete protected graph edges
  by triggering a REFERENCE ON DELETE CASCADE. Attackers with delete permission
  on a reference…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L'
cwe:
  - CWE-862
published: '2026-10-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T17:17:30.500'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109340'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-4w65-7h3j-p29h
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-3.1.0-before-3.3.0-authorization-bypass-via-reference-on-delete-cascade
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-12T18:00:08.207Z'
---

## Overview

SurrealDB from 3.1.0 before 3.3.0 contains an authorization bypass vulnerability that allows authenticated users to delete protected graph edges by triggering a REFERENCE ON DELETE CASCADE. Attackers with delete permission on a referenced table can delete a record whose cascade disables permission checks for edge cleanup, erasing edges despite the edge table's PERMISSIONS FOR delete clause.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
