CVE-2026-34976
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.
How to fix
- github.com/dgraph-io/dgraph/v2525.3.1 or later
- github.com/hypermodeinc/dgraph/v2424.1.6 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dgraph dgraph | v ≤ 25.3.0 | — |
| github.com/dgraph-io/dgraph/v25Go | v < 25.3.1 | 25.3.1 |
| github.com/dgraph-io/dgraph/v24Go | v ≤ 24.0.5 | — |
| github.com/dgraph-io/dgraphGo | v ≤ 1.2.8, No range specified | — |
| github.com/hypermodeinc/dgraph/v24Go | 24.0.0 ≤ v < 24.1.6 | 24.1.6 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.