---
title: "CVE-2026-41328: Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field"
url: https://erroneo.us/security/cve/CVE-2026-41328/
description: "CVE-2026-41328 (github.com/dgraph-io/dgraph/v25 (Go)): Dgraph is an open source distributed GraphQL database. Prior to 25.3.3, a vulnerability has been…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-04-24
date_modified: 2026-05-04
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-41328"
kev: false
cvss: 9.1
epss: 0.0048
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-41328: Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.5% , percentile 40: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 40% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes github.com/dgraph-io/dgraph/v25 (Go) < 25.3.3, fixed in 25.3.3 ; github.com/dgraph-io/dgraph/v24 (Go) <= 24.1.8, no fixed version listed ; github.com/dgraph-io/dgraph (Go) <= 1.2.8, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

Dgraph is an open source distributed GraphQL database. Prior to 25.3.3, a vulnerability has been found in Dgraph that gives an unauthenticated attacker full read access to every piece of data in the database. This affects Dgraph's default configuration where ACL is not enabled. The attack requires two HTTP POSTs to port 8080. The first sets up a schema predicate with @unique @index(exact) @lang via /alter (also unauthenticated in default config). The second sends a crafted JSON mutation to /mutate?commitNow=true where a JSON key contains the predicate name followed by @ and a DQL injection payload in the language tag position. The injection exploits the addQueryIfUnique function in edgraph/server.go, which constructs DQL queries using fmt.Sprintf with unsanitized predicateName that includes the raw pred.Lang value. The Lang field is extracted from JSON mutation keys by x.PredicateLang(), which splits on @, and is never validated by any function in the codebase. The attacker injects a closing parenthesis to escape the eq() function, adds an arbitrary named query block, and uses a # comment to neutralize trailing template syntax. The injected query executes server-side and its results are returned in the HTTP response. This vulnerability is fixed in 25.3.3.

## Affected packages

- Go `github.com/dgraph-io/dgraph/v25` < 25.3.3 → fixed: 25.3.3
- Go `github.com/dgraph-io/dgraph/v24` <= 24.1.8 → fixed: none listed
- Go `github.com/dgraph-io/dgraph` <= 1.2.8 → fixed: none listed

## Affected products (CVE record)

- dgraph-io dgraph: < 25.3.3

## Severity

- GitHub_M CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.48% probability of exploitation activity in the next 30 days; percentile 40.

## Sources

- [GitHub Advisory GHSA-x92x-px7w-4gx4](https://github.com/advisories/GHSA-x92x-px7w-4gx4)
- [CVE.org record CVE-2026-41328](https://www.cve.org/CVERecord?id=CVE-2026-41328)
- [NVD entry CVE-2026-41328](https://nvd.nist.gov/vuln/detail/CVE-2026-41328)
- [github.com](https://github.com/dgraph-io/dgraph/security/advisories/GHSA-x92x-px7w-4gx4)

---
Source page: https://erroneo.us/security/cve/CVE-2026-41328/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
