CVE-2026-41327: GO-2026-5516 - Pre-Auth DQL injection in upsert condition field in github.com/dgraph-io/dgraph
CVE-2026-41327 · Severity: critical · CVSS 9.1 · Published 2026-04-24
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.
Yes. github.com/dgraph-io/dgraph/v25 (Go): upgrade to 25.3.3 or later; github.com/hypermodeinc/dgraph/v24 (Go): upgrade to 24.1.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-41327?
Check whether you run Dgraph, github.com/dgraph-io/dgraph (Go), github.com/dgraph-io/dgraph/v24 (Go) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
github.com/dgraph-io/dgraph/v25 (Go): upgrade to 25.3.3 or later
go get github.com/dgraph-io/dgraph/v25@v25.3.3
github.com/hypermodeinc/dgraph/v24 (Go): upgrade to 24.1.8 or later