Skip to content

CVE-2026-41327 Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in Upsert Condition Field

CriticalCVSS 9.1 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

Dgraph is an open source distributed GraphQL database. Prior to 25.3.3, a vulnerability has been found in Dgraph that gives an unauthenticated attacker full read access to every piece of data in the database. This affects Dgraph's default configuration where ACL is not enabled. The attack is a single HTTP POST to /mutate?commitNow=true containing a crafted cond field in an upsert mutation. The cond value is concatenated directly into a DQL query string via strings.Builder.WriteString after only a cosmetic strings.Replace transformation. No escaping, parameterization, or structural validation is applied. An attacker injects an additional DQL query block into the cond string, which the DQL parser accepts as a syntactically valid named query block. The injected query executes server-side and its results are returned in the HTTP response. This vulnerability is fixed in 25.3.3.

Upgrade path

4 packages: 2 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
dgraph-io dgraph(Go) < 25.3.3; <= 1.2.8; <= 24.1.8; All versions 25.3.3 Partially fixed
dgraph < 25.3.3 25.3.3 Fixed
hypermodeinc github.com/hypermodeinc/dgraph/v24(Go) < 24.1.8 24.1.8 Fixed
dgraph-io dgraph = < 25.3.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
dgraph-io dgraph = < 25.3.3 No fix listed
dgraph-io dgraph(Go) < 25.3.3 25.3.3
dgraph-io dgraph(Go) <= 24.1.8 No fix listed
dgraph-io dgraph(Go) <= 1.2.8 No fix listed
dgraph-io dgraph(Go) All versions No fix listed
hypermodeinc github.com/hypermodeinc/dgraph/v24(Go) < 24.1.8 24.1.8
dgraph < 25.3.3 25.3.3

References