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.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)2.1%top 18.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Nuclei

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

EcosystemPackageFixed inAdvisory
Gogithub.com/dgraph-io/dgraphno fix listedGHSA-p5rh-vmhp-gvcw
Gogithub.com/dgraph-io/dgraphno fix listedGO-2026-5529
Gogithub.com/dgraph-io/dgraph/v24no fix listedGHSA-p5rh-vmhp-gvcw
Gogithub.com/dgraph-io/dgraph/v2525.3.1GHSA-p5rh-vmhp-gvcw
Gogithub.com/dgraph-io/dgraph/v2525.3.1GO-2026-5529
Gogithub.com/hypermodeinc/dgraph/v2424.1.6GO-2026-5529

Affected products (as reported)

VendorProductVersions
dgraph-io dgraph < 25.3.1

Weakness: CWE-862 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

References