Vulnerability · Published Apr 24, 2026 · Assigned by GitHub_M

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

Critical 9.1

In plain English

A critical-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 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.5%top 57.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/dgraph-io/dgraphno fix listedGHSA-mrxx-39g5-ph77
Gogithub.com/dgraph-io/dgraphno fix listedGO-2026-5516
Gogithub.com/dgraph-io/dgraph/v24no fix listedGHSA-mrxx-39g5-ph77
Gogithub.com/dgraph-io/dgraph/v2525.3.3GHSA-mrxx-39g5-ph77
Gogithub.com/dgraph-io/dgraph/v2525.3.3GO-2026-5516
Gogithub.com/hypermodeinc/dgraph/v2424.1.8GO-2026-5516

Affected products (as reported)

VendorProductVersions
dgraph-io dgraph < 25.3.3

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

References