# CVE-2026-41327: Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in Upsert Condition 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): 1.78%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T15:41:21.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-mrxx-39g5-ph77, GO-2026-5516
- Weaknesses: CWE-943
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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 is a single HTTP POST to /mutate?commitNow=true containing a crafted cond field in an upsert mutation. The cond value is concatenated directly into a DQL query string via strings.Builder.WriteString after only a cosmetic strings.Replace transformation. No escaping, parameterization, or structural validation is applied. An attacker injects an additional DQL query block into the cond string, which the DQL parser accepts as a syntactically valid named query block. 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.8
- 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-mrxx-39g5-ph77> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/dgraph-io/dgraph/releases/tag/v25.3.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41327> (advisory)
- <https://github.com/dgraph-io/dgraph> (package)

## Sources

- CVE List: [CVE-2026-41327](https://www.cve.org/CVERecord?id=CVE-2026-41327), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-mrxx-39g5-ph77](https://github.com/advisories/GHSA-mrxx-39g5-ph77), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5516](https://pkg.go.dev/vuln/GO-2026-5516), CC-BY-4.0, modified 2026-08-11
- NVD: [CVE-2026-41327](https://nvd.nist.gov/vuln/detail/CVE-2026-41327), Public domain, modified 2026-11-11

---

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