GO-2026-5749

DQL injection via unsanitized NQuad Lang field in github.com/dgraph-io/dgraph

At a glance

Published
Updated
CVE
CVE-2026-41328
Aliases
GHSA-x92x-px7w-4gx4

Description

A vulnerability in Dgraph allows an unauthenticated attacker full read access to data in the database when ACL is not enabled. The injection exploits the addQueryIfUnique function, which constructs DQL queries using fmt.Sprintf with an unsanitized predicate name that includes the raw Lang value from a JSON mutation key. An attacker can escape the function and inject arbitrary named query blocks, which execute server-side and return results in the HTTP response.

Affected packages

PackageVersions
Go · github.com/dgraph-io/dgraphintroduced 0
Go · github.com/dgraph-io/dgraph/v25introduced 0, fixed 25.3.3
Go · github.com/hypermodeinc/dgraph/v24introduced 0, fixed 24.1.9

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database