Incorrect Authorization Affecting surrealdb package, versions <3.1.0-beta.1


Severity

Recommended
0.0
high
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 Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-SURREALDB-17797674
  • published2 Jul 2026
  • disclosed1 Jul 2026
  • creditUnknown

Introduced: 1 Jul 2026

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

How to fix?

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

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the evaluation of user-supplied expressions in WHERE, SET, MERGE, CONTENT, and PATCH clauses before permission checks are enforced. An attacker can access unauthorized table data by crafting queries that exploit the order of operations, potentially exfiltrating sensitive information through scripting functions, SurrealQL's THROW statement, or timing-based side channels. This is only exploitable if the attacker is authenticated to the target database; cross-database or cross-namespace access is not possible.

Workaround

This vulnerability can be mitigated by disabling scripting functions (removing the -A / --allow-scripting flag), limiting query access for untrusted users, and using namespace/database isolation as the primary security boundary.

CVSS Base Scores

version 4.0
version 3.1