Vulnerability GO-2026-5516

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
2 months ago
August 11, 2026 at 08:19 PM UTC
Pre-Auth DQL injection in upsert condition field in github.com/dgraph-io/dgraph
v0.4.0 - v1.2.8
v0.4.0 - v1.2.8

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.

Timeline

Published
2 months ago
August 11, 2026 at 08:19 PM UTC
Fixed (v25.3.3)
5 months ago
April 21, 2026 at 07:50 PM UTC
Fixed (v24.1.8)
5 months ago
April 21, 2026 at 08:47 PM UTC
Last Modified
2 months ago
August 11, 2026 at 08:45 PM UTC