CVE-2026-34976

Critical

Description

Dgraph is an open source distributed GraphQL database. Prior to 25.3.1, the restoreTenant admin mutation is missing from the authorization middleware config (admin.go), making it completely unauthenticated. Unlike the similar restore mutation which requires Guardian-of-Galaxy authentication, restoreTenant executes with zero middleware. This mutation accepts attacker-controlled backup source URLs (including file:// for local filesystem access), S3/MinIO credentials, encryption key file paths, and Vault credential file paths. An unauthenticated attacker can overwrite the entire database, read server-side files, and perform SSRF. This vulnerability is fixed in 25.3.1.

SeverityCritical
CVSS10.0
Exploit probability—
ProductDgraph
PublishedApr 6, 2026
First seenApr 6, 2026

How to fix

Update
  • github.com/dgraph-io/dgraph/v2525.3.1 or later
  • github.com/hypermodeinc/dgraph/v2424.1.6 or later

Affected products

ProductAffected versionsFixed in
dgraph dgraphv ≤ 25.3.0—
github.com/dgraph-io/dgraph/v25Gov < 25.3.125.3.1
github.com/dgraph-io/dgraph/v24Gov ≤ 24.0.5—
github.com/dgraph-io/dgraphGov ≤ 1.2.8, No range specified—
github.com/hypermodeinc/dgraph/v24Go24.0.0 ≤ v < 24.1.624.1.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.