{"cve":"CVE-2026-41328","nvd":{"published":"2026-04-24T19:17:12.553","modified":"2026-06-17T10:46:31.040","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1},"cwes":["CWE-943"],"references":["https://github.com/dgraph-io/dgraph/security/advisories/GHSA-x92x-px7w-4gx4","https://github.com/dgraph-io/dgraph/security/advisories/GHSA-x92x-px7w-4gx4"],"products":["dgraph:dgraph"],"source":"nvd","synced_at":"2026-10-19T22:33:09.003606135+00:00"},"epss":{"cve":"CVE-2026-41328","score":0.00415,"percentile":0.35785,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-x92x-px7w-4gx4","url":"https://osv.dev/vulnerability/GHSA-x92x-px7w-4gx4","summary":"Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field","modified":"2026-09-10T03:51:04.040216665Z","packages":[{"ecosystem":"Go","name":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","ranges":["<25.3.3"],"fixed":["25.3.3"]},{"ecosystem":"Go","name":"github.com/dgraph-io/dgraph/v24","purl":"pkg:golang/github.com/dgraph-io/dgraph/v24","ranges":["<=24.1.8"],"fixed":[]},{"ecosystem":"Go","name":"github.com/dgraph-io/dgraph","purl":"pkg:golang/github.com/dgraph-io/dgraph","ranges":["<=1.2.8"],"fixed":[]}]},{"id":"GO-2026-5749","url":"https://osv.dev/vulnerability/GO-2026-5749","summary":"DQL injection via unsanitized NQuad Lang field in github.com/dgraph-io/dgraph","modified":"2026-07-23T17:45:22.515915133Z","packages":[{"ecosystem":"Go","name":"github.com/dgraph-io/dgraph","purl":"pkg:golang/github.com/dgraph-io/dgraph","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","ranges":["<25.3.3"],"fixed":["25.3.3"]},{"ecosystem":"Go","name":"github.com/hypermodeinc/dgraph/v24","purl":"pkg:golang/github.com/hypermodeinc/dgraph/v24","ranges":["<24.1.9"],"fixed":["24.1.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}