Vulnerability · Published Apr 6, 2026 · Assigned by GitHub_M
CVE-2026-34976Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization
Critical 10.0
In plain English
A critical-severity missing authorization in dgraph from dgraph-io. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 81% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/dgraph-io/dgraph | no fix listed | GHSA-p5rh-vmhp-gvcw |
| Go | github.com/dgraph-io/dgraph | no fix listed | GO-2026-5529 |
| Go | github.com/dgraph-io/dgraph/v24 | no fix listed | GHSA-p5rh-vmhp-gvcw |
| Go | github.com/dgraph-io/dgraph/v25 | 25.3.1 | GHSA-p5rh-vmhp-gvcw |
| Go | github.com/dgraph-io/dgraph/v25 | 25.3.1 | GO-2026-5529 |
| Go | github.com/hypermodeinc/dgraph/v24 | 24.1.6 | GO-2026-5529 |
Affected products (as reported)
Weakness: CWE-862 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/dgraph-io/dgraph/security/advisories/GHSA-p5rh-vmhp-gvcw x_refsource_CONFIRM