Go Vulnerability Database
GO-2026-5529
Unauthenticated restoreTenant mutation allows database overwrite and SSRF in github.com/dgraph-io/dgraph
Details
The restoreTenant GraphQL mutation in Dgraph was missing from the admin mutation middleware configuration. This omission bypassed all authentication, IP whitelisting, and audit logging for this mutation.
An unauthenticated remote attacker could use this mutation to trigger a database restore from an arbitrary URL, potentially leading to a complete database overwrite, Server-Side Request Forgery (SSRF), or arbitrary file read on the host system.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/dgraph-io/dgraph | All versions, no fix listed |
| Go | github.com/dgraph-io/dgraph/v25 | All versions before 25.3.1 (fixed in 25.3.1) |
| Go | github.com/hypermodeinc/dgraph/v24 | From 24.0.0 before 24.1.6 (fixed in 24.1.6) |