NPM · SEPTEMBER 2026 · EARLY WARNING

SurrealDB Vulnerability: Unauthorized Data Modifications Risk

EARLY WARNING · UNCONFIRMED. This page describes a developing threat that 0Day surfaced from early signals and has not yet independently confirmed. Details may change. Always verify against the primary sources before acting.
Severity
HIGH
Affected component
surrealdb (npm)
Patched version
3.2.0
GHSA-66R2-5GWJ-GXM2

An early warning has been issued for a vulnerability in SurrealDB versions prior to 3.2.0. This vulnerability allows unauthorized data modifications by bypassing table permissions.

What happened

SurrealDB versions before 3.2.0 reportedly contain a vulnerability that allows writes in a PERMISSIONS clause to bypass table permissions. This enables unauthorized users to modify data in ways that should be restricted. The vulnerability is tracked under GHSA-66R2-5GWJ-GXM2 and has a high severity rating. It is under investigation and has not been exploited in the wild as of the latest reports.

Additionally, another advisory under GHSA-848m-r628-vrxw indicates that a custom API route in SurrealDB allows authenticated callers to override namespace and database scope via URL path. This further compounds the risk by potentially allowing unauthorized access to sensitive data.

What to do about it

How 0Day would have caught this

MATCHED TO YOUR ACTUAL DEPENDENCY GRAPH0Day matches every incoming threat signal against your GitHub organization’s full dependency graph, including transitive dependencies. If surrealdb is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.

Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.

Frequently asked questions

Am I affected?

If you are using SurrealDB versions prior to 3.2.0, you are potentially affected by this vulnerability.

What should I do right now?

Immediately upgrade to SurrealDB version 3.2.0 or later. Review and adjust your database permissions and configurations to enhance security.

Has this vulnerability been exploited in the wild?

There are no reports of this vulnerability being exploited in the wild at this time.

Sources

Join the 0Day waitlist →

← Back to all threats