{"answers":{"affected":"9 open source packages ship an affected version, including github.com/dgraph-io/dgraph, github.com/dgraph-io/dgraph/v24 and github.com/dgraph-io/dgraph/v25. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41328 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-41328 is a critical code injection vulnerability in dgraph-io dgraph, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41328 and fix it if it is affected.\n\nWhat it is: CVE-2026-41328 is a critical code injection vulnerability in dgraph-io dgraph, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41328 exists.\n\nAffected packages and fixed versions:\n- github.com/dgraph-io/dgraph (Go): affected all versions; no fix listed\n- github.com/dgraph-io/dgraph (Go): affected all versions up to 1.2.8; no fix listed\n- github.com/dgraph-io/dgraph (Go): affected all versions up to 1.2.8; no fix listed\n- github.com/dgraph-io/dgraph/v24 (Go): affected all versions up to 24.1.8; no fix listed\n- github.com/dgraph-io/dgraph/v24 (Go): affected all versions up to 24.1.8; no fix listed\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.3\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.3\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.3\n- github.com/hypermodeinc/dgraph/v24 (Go): affected all versions; fixed in 24.1.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41328/ (Markdown: https://insights.sbomify.com/CVE-2026-41328/index.md)","id":"CVE-2026-41328","markdown":"https://insights.sbomify.com/CVE-2026-41328/index.md","name":"CVE-2026-41328","record":{"aliases":["GHSA-x92x-px7w-4gx4","GO-2026-5749"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Dgraph database","requires_auth":"none","summary":"Unauthenticated attackers can exfiltrate all database data via DQL injection in the NQuad Lang field when ACL is disabled.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dgraph","vendor":"dgraph"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field","id":"CVE-2026-41328","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":9,"n_references":1,"next":{"headline":"OpenClaw \u003c 2026.3.31 - Sandbox Bypass via Heartbeat Context Inheritance and senderIsOwner Escalation","id":"CVE-2026-41329"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph","purl":"pkg:golang/github.com/dgraph-io/dgraph","source":"GO-2026-5749"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.2.8"],"package":"github.com/dgraph-io/dgraph","purl":null,"source":"GHSA-x92x-px7w-4gx4"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.2.8"],"package":"github.com/dgraph-io/dgraph","purl":"pkg:golang/github.com/dgraph-io/dgraph","source":"GHSA-x92x-px7w-4gx4"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["24.1.8"],"package":"github.com/dgraph-io/dgraph/v24","purl":null,"source":"GHSA-x92x-px7w-4gx4"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["24.1.8"],"package":"github.com/dgraph-io/dgraph/v24","purl":"pkg:golang/github.com/dgraph-io/dgraph/v24","source":"GHSA-x92x-px7w-4gx4"},{"ecosystem":"Go","fixed":["25.3.3"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":null,"source":"GHSA-x92x-px7w-4gx4"},{"ecosystem":"Go","fixed":["25.3.3"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GHSA-x92x-px7w-4gx4"},{"ecosystem":"Go","fixed":["25.3.3"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GO-2026-5749"},{"ecosystem":"Go","fixed":["24.1.9"],"introduced":["0"],"last_affected":[],"package":"github.com/hypermodeinc/dgraph/v24","purl":"pkg:golang/github.com/hypermodeinc/dgraph/v24","source":"GO-2026-5749"}],"prev":{"headline":"Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in Upsert Condition Field","id":"CVE-2026-41327"},"products":["dgraph"],"published":"2026-04-24","related":[{"cvss_score":10,"headline":"Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization","id":"CVE-2026-34976","kev_date_added":null,"published":"2026-04-06"},{"cvss_score":9.8,"headline":"Unauthenticated Admin Token Disclosure Leading to Authentication Bypass via /debug/vars in Dgraph","id":"CVE-2026-41492","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":9.4,"headline":"Dgraph: Unauthenticated pprof endpoint leaks admin auth token","id":"CVE-2026-40173","kev_date_added":null,"published":"2026-04-15"},{"cvss_score":9.1,"headline":"Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in Upsert Condition Field","id":"CVE-2026-41327","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":3.3,"headline":"Dgraph Audit Log Encryption nonce reuse","id":"CVE-2023-31135","kev_date_added":null,"published":"2023-05-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-24","vendors":["dgraph-io"]},"summary":"Unauthenticated attackers can exfiltrate all database data via DQL injection in the NQuad Lang field when ACL is disabled.","url":"https://insights.sbomify.com/CVE-2026-41328/"}