{"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-41327 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-41327 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-41327 and fix it if it is affected.\n\nWhat it is: CVE-2026-41327 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-41327 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.8\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-41327/ (Markdown: https://insights.sbomify.com/CVE-2026-41327/index.md)","id":"CVE-2026-41327","markdown":"https://insights.sbomify.com/CVE-2026-41327/index.md","name":"CVE-2026-41327","record":{"aliases":["GHSA-mrxx-39g5-ph77","GO-2026-5516"],"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 upsert condition 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 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.","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 Upsert Condition Field","id":"CVE-2026-41327","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":9,"n_references":2,"next":{"headline":"Dgraph: Pre-Auth Full Database Exfiltration via DQL Injection in NQuad Lang Field","id":"CVE-2026-41328"},"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-5516"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.2.8"],"package":"github.com/dgraph-io/dgraph","purl":null,"source":"GHSA-mrxx-39g5-ph77"},{"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-mrxx-39g5-ph77"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["24.1.8"],"package":"github.com/dgraph-io/dgraph/v24","purl":null,"source":"GHSA-mrxx-39g5-ph77"},{"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-mrxx-39g5-ph77"},{"ecosystem":"Go","fixed":["25.3.3"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":null,"source":"GHSA-mrxx-39g5-ph77"},{"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-mrxx-39g5-ph77"},{"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-5516"},{"ecosystem":"Go","fixed":["24.1.8"],"introduced":["0"],"last_affected":[],"package":"github.com/hypermodeinc/dgraph/v24","purl":"pkg:golang/github.com/hypermodeinc/dgraph/v24","source":"GO-2026-5516"}],"prev":{"headline":"Kata Containers: CopyFile Policy Subversion via Symlinks","id":"CVE-2026-41326"},"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 NQuad Lang Field","id":"CVE-2026-41328","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":"partial"},"state":"PUBLISHED","updated":"2026-04-24","vendors":["dgraph-io"]},"summary":"Unauthenticated attackers can exfiltrate all database data via DQL injection in the upsert condition field when ACL is disabled.","url":"https://insights.sbomify.com/CVE-2026-41327/"}