ADVISORIES

Go Vulnerability Database

GO-2026-5837

DQL injection via checkUserPassword GraphQL query in github.com/dgraph-io/dgraph

Details

The checkUserPassword GraphQL query in Dgraph is vulnerable to Dgraph Query Language (DQL) injection. User-supplied password values are interpolated directly into a DQL checkpwd query without escaping or parameterization. An attacker can inject a password containing a double-quote character to break out of the DQL string literal and append arbitrary DQL query blocks.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/dgraph-io/dgraph
All versions, no fix listed
Gogithub.com/hypermodeinc/dgraph/v24
All versions, no fix listed
Gogithub.com/dgraph-io/dgraph/v25
All versions before 25.3.4 (fixed in 25.3.4)

References