Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M

CVE-2026-44840Dgraph Vulnerable to DQL Injection via checkUserPassword GraphQL Query

High 7.5

In plain English

A high-severity security flaw 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 0.5% (higher than 45% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 55.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

Dgraph is an open source distributed GraphQL database. Prior to version 25.3.4, the `checkUserPassword` GraphQL query in Dgraph is vulnerable to DQL (Dgraph Query Language) injection. User-supplied password values are interpolated directly into a DQL `checkpwd()` query via `fmt.Sprintf` without any 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. Version 25.3.4 patches the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/dgraph-io/dgraphno fix listedGO-2026-5837
Gogithub.com/dgraph-io/dgraph/v2525.3.4GHSA-q2m9-6jp9-c6mc
Gogithub.com/dgraph-io/dgraph/v2525.3.4GO-2026-5837
Gogithub.com/hypermodeinc/dgraph/v24no fix listedGO-2026-5837

Affected products (as reported)

VendorProductVersions
dgraph-io dgraph < 25.3.4

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

References