{"answers":{"affected":"5 open source packages ship an affected version, including github.com/dgraph-io/dgraph/v25, github.com/dgraph-io/dgraph and github.com/hypermodeinc/dgraph/v24.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44840 exists.","fix":"Upgrade github.com/dgraph-io/dgraph/v25 to 25.3.4 or later.","what":"CVE-2026-44840 is a high-severity code injection vulnerability in dgraph-io dgraph, published on 8 Jul 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-44840 and fix it if it is affected.\n\nWhat it is: CVE-2026-44840 is a high-severity code injection vulnerability in dgraph-io dgraph, published on 8 Jul 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-44840 exists.\n\nAffected packages and fixed versions:\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.4\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.4\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.4\n- github.com/dgraph-io/dgraph (Go): affected all versions; no fix listed\n- github.com/hypermodeinc/dgraph/v24 (Go): affected all versions; no fix listed\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-44840/ (Markdown: https://insights.sbomify.com/CVE-2026-44840/index.md)","id":"CVE-2026-44840","markdown":"https://insights.sbomify.com/CVE-2026-44840/index.md","name":"CVE-2026-44840","record":{"aliases":["GHSA-q2m9-6jp9-c6mc","GO-2026-5837"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Dgraph database","requires_auth":"none","summary":"Attackers can inject arbitrary DQL queries via the checkUserPassword GraphQL query, potentially executing code or reading data in Dgraph databases.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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 version 25.3.4, the `checkUserPassword` GraphQL query in Dgraph is vulnerable to DQL (Dgraph Query Language) injection. User-supplied password values are interpolated directly into a DQL `checkpwd()` query via `fmt.Sprintf` without any escaping or parameterization. An attacker can inject a password containing a double-quote character to break out of the DQL string literal and append arbitrary DQL query blocks. Version 25.3.4 patches the issue.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2026-09-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-17T03:07:34Z","kind":"github_poc","ref":"https://github.com/isaca0315/CVE-2026-44840-poc","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Dgraph Vulnerable to DQL Injection via checkUserPassword GraphQL Query","id":"CVE-2026-44840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":5,"n_references":3,"next":{"headline":"LangChain: Unsafe deserialization of attacker-controlled LangChain objects through overly broad `load()` allowlists","id":"CVE-2026-44843"},"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-5837"},{"ecosystem":"Go","fixed":["25.3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":null,"source":"GHSA-q2m9-6jp9-c6mc"},{"ecosystem":"Go","fixed":["25.3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GHSA-q2m9-6jp9-c6mc"},{"ecosystem":"Go","fixed":["25.3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GO-2026-5837"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/hypermodeinc/dgraph/v24","purl":"pkg:golang/github.com/hypermodeinc/dgraph/v24","source":"GO-2026-5837"}],"prev":{"headline":"RabbitMQ: Unsanitized vhost names allow for XSS in management UI","id":"CVE-2026-44839"},"products":["dgraph"],"published":"2026-07-08","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["dgraph-io"]},"summary":"Attackers can inject arbitrary DQL queries via the checkUserPassword GraphQL query, potentially executing code or reading data in Dgraph databases.","url":"https://insights.sbomify.com/CVE-2026-44840/"}