Advisory

GO-2026-5749

Also known as: CVE-2026-41328, GHSA-x92x-px7w-4gx4

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-06-25 22:34 UTC
Modified
2026-07-23 17:45 UTC

Affected packages and fixes

github.com/dgraph-io/dgraph

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/dgraph-io/dgraph/v25

Go · All systems

Affected

  • introduced 0, fixed 25.3.3 (semver)

Fixed versions

25.3.3

Fix

github.com/hypermodeinc/dgraph/v24

Go · All systems

Affected

  • introduced 0, fixed 24.1.9 (semver)

Fixed versions

24.1.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences