Improper Authorization Affecting surrealdb package, versions <3.1.0-beta.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SURREALDB-17797688
  • published2 Jul 2026
  • disclosed1 Jul 2026
  • creditUnknown

Introduced: 1 Jul 2026

New CVE NOT AVAILABLE CWE-285  (opens in a new tab)

How to fix?

Upgrade surrealdb to version 3.1.0-beta.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization in the RELATE process when a SET id = ... clause resolves to an existing edge id. An attacker can overwrite existing edge records without proper authorization by issuing a RELATE statement with a SET id targeting an existing record. This is only exploitable if the RELATE statement includes a SET id = ... clause that matches an existing edge id.

Workaround

This vulnerability can be mitigated by verifying that no record with the target id exists before issuing the statement, or by restricting CREATE permission on the edge table to principals who also have UPDATE permission on the same table.

CVSS Base Scores

version 4.0
version 3.1