GO-2026-5837

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

At a glance

Published
Updated
CVE
CVE-2026-44840
Aliases
GHSA-q2m9-6jp9-c6mc

Description

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

PackageVersions
Go · github.com/dgraph-io/dgraphintroduced 0
Go · github.com/hypermodeinc/dgraph/v24introduced 0
Go · github.com/dgraph-io/dgraph/v25introduced 0, fixed 25.3.4

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database