Advisory

GO-2026-5516

Also known as: CVE-2026-41327, GHSA-mrxx-39g5-ph77

Summary

Pre-Auth DQL injection in upsert condition field in github.com/dgraph-io/dgraph

Details

A DQL injection vulnerability in Dgraph allows an unauthenticated remote attacker to exfiltrate data from the database.

The injection occurs via the "cond" field in upsert mutations. The buildUpsertQuery function fails to properly validate the condition string, allowing an attacker to craft a payload that closes the intended @if clause and appends arbitrary DQL query blocks. These injected blocks execute with the privileges of the Dgraph process, potentially leading to full database exfiltration.

Severity

Not rated by the source.

Dates

Published
2026-08-11 20:19 UTC
Modified
2026-08-11 20: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.8 (semver)

Fixed versions

24.1.8

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