Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-41327

Pre-Auth DQL injection in upsert condition field in github.com/dgraph-io/dgraph
Back to all
CVE

CVE-2026-41327

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

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
C
H
U
0
-
C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Related Resources

No items found.

References

https://github.com/dgraph-io/dgraph/security/advisories/GHSA-mrxx-39g5-ph77, https://github.com/dgraph-io/dgraph/releases/tag/v25.3.3

Severity

9.1

CVSS Score
0
10

Basic Information

Base CVSS
9.1
EPSS Probability
0.0049%
EPSS Percentile
0.40596%
Introduced Version
0,v25.0.0-custom-qt-improv-1,v25.0.0-20251125204325-8c2875fa3375,v25.0.0-20250418040326-e01eebdf7962,v24.0.0-alpha,v24.0.0-20250107172524-171af7c47a00,v24.0.0-20240823084746-993353cf57e7,v0.0.0-20230828125852-92c5b7a78c1b,v1.1.1-rc1,v0.0.0-20191121162637-c23fdce4d8e7,v1.1.0-rc1,v0.0.0-20190620073013-ff1716c2defe
Fix Available
25.3.3,24.1.8,v25.3.3,v25.0.0-20260421195045-55e3b79817e8,v24.1.8,v24.0.0-20260421204715-36b3d75188ad

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading