CVE-2026-41328: Dgraph - NoSQL Injection
- Cve: CVE-2026-41328
- Name: Dgraph - NoSQL Injection
- 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.
- Impact: Unauthenticated attackers can read all data in the database, leading to full data disclosure.
- Remediation: Update to version 25.3.3 or later.
- Vulnerability type: nosql_injection
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00431
- Epss percentile: 0.38082
- Assignee: [email protected]
- Published at: 2026-04-24T19:17:12Z
- Age in days: 214
- Modified at: 2026-11-11T23:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-41328
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-943 | Improper Neutralization of Special Elements in Data Query Logic |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/dgraph-io/dgraph/security/advisories/GHSA-x92x-px7w-4gx4 | nvd | 2026-04-24 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/dgraph-io/dgraph/security/advisories/GHSA-x92x-px7w-4gx4 | nvd | Exploit, Mitigation, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| dgraph:dgraph | < 25.3.3 | no | nvd | /v1/products/dgraph/dgraph |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| dgraph-io/dgraph | fix, package, security_advisory | yes | /v1/repositories/dgraph-io/dgraph |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-24
- Remote: yes
- Exposed hosts: 321
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports