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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T15:41:42.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-x92x-px7w-4gx4, GO-2026-5749
- Weaknesses: CWE-943
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- dgraph-io dgraph: < 25.3.3
- github.com/dgraph-io/dgraph/v25 (Go): before 25.3.3
- github.com/dgraph-io/dgraph/v24 (Go): up to 24.1.8
- github.com/dgraph-io/dgraph (Go): up to 1.2.8; all versions
- github.com/hypermodeinc/dgraph/v24 (Go): before 24.1.9
- dgraph dgraph: before 25.3.3

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `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 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/dgraph-io/dgraph/security/advisories/GHSA-x92x-px7w-4gx4> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41328> (advisory)
- <https://github.com/dgraph-io/dgraph> (package)

## Sources

- CVE List: [CVE-2026-41328](https://www.cve.org/CVERecord?id=CVE-2026-41328), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-x92x-px7w-4gx4](https://github.com/advisories/GHSA-x92x-px7w-4gx4), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5749](https://pkg.go.dev/vuln/GO-2026-5749), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-41328](https://nvd.nist.gov/vuln/detail/CVE-2026-41328), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41328 · Whole record: https://cve.day/CVE-2026-41328.json · Rebuilt by cve.day 2026-11-25T22:59:19.573Z
