Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2026-44840 EUVD-2026-42237GHSA-q2m9-6jp9-c6mcGO-2026-5837

Dgraph Vulnerable to DQL Injection via checkUserPassword GraphQL Query

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
dgraph-io dgraph < 25.3.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/dgraph-io/dgraph all versions — GO-2026-5837
Go github.com/dgraph-io/dgraph/v25 < 25.3.4 25.3.4 GHSA-q2m9-6jp9-c6mc
Go github.com/hypermodeinc/dgraph/v24 all versions — GO-2026-5837

Advisories 1

References