CVE-2026-34976 Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization

Critical 10.0 Published Updated

Unauthenticated attackers can overwrite the database, read server files, and perform SSRF via the restoreTenant mutation due to missing authorization checks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-34976?

CVE-2026-34976 is a critical missing authorization vulnerability in dgraph-io dgraph, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-862

Which versions are affected by CVE-2026-34976?

9 open source packages ship an affected version, including github.com/dgraph-io/dgraph, github.com/dgraph-io/dgraph/v24 and github.com/dgraph-io/dgraph/v25. It affects 1 product.

PackageAffectedFixed in
github.com/dgraph-io/dgraph GoAll versionsNone
github.com/dgraph-io/dgraph GoAll versions to 1.2.8None
github.com/dgraph-io/dgraph GoAll versions to 1.2.8None
github.com/dgraph-io/dgraph/v24 GoAll versions to 24.0.5None
github.com/dgraph-io/dgraph/v24 GoAll versions to 24.0.5None
github.com/dgraph-io/dgraph/v25 GoAll versions25.3.1
3 more packages
github.com/dgraph-io/dgraph/v25 GoAll versions25.3.1
github.com/dgraph-io/dgraph/v25 GoAll versions25.3.1
github.com/hypermodeinc/dgraph/v24 GoFrom 24.0.024.1.6

Products include Dgraph Dgraph.

How do I fix CVE-2026-34976?

Upgrade to a fixed version.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-34976 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34976 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-p5rh-vmhp-gvcw, GO-2026-5529.

Is CVE-2026-34976 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free