{"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-40173 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-40173 is a critical vulnerability in dgraph-io dgraph, published on 15 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-40173 and fix it if it is affected.\n\nWhat it is: CVE-2026-40173 is a critical vulnerability in dgraph-io dgraph, published on 15 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-40173 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.7; no fix listed\n- github.com/dgraph-io/dgraph/v24 (Go): affected all versions up to 24.1.7; no fix listed\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.2\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.2\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.2\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-40173/ (Markdown: https://insights.sbomify.com/CVE-2026-40173/index.md)","id":"CVE-2026-40173","markdown":"https://insights.sbomify.com/CVE-2026-40173/index.md","name":"CVE-2026-40173","record":{"aliases":["GHSA-95mq-xwj4-r47p","GO-2026-5274"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Dgraph database","requires_auth":"none","summary":"Unauthenticated access to the pprof endpoint leaks the admin token, allowing attackers to gain unauthorized administrative control over the Dgraph database.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dgraph","vendor":"dgraph"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"},{"id":"CWE-215","name":"Insertion of Sensitive Information Into Debugging Code"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"Dgraph is an open source distributed GraphQL database. Versions 25.3.1 and prior contain an unauthenticated credential disclosure vulnerability where the /debug/pprof/cmdline endpoint is registered on the default mux and reachable without authentication, exposing the full process command line including the admin token configured via the --security \"token=...\" startup flag. An attacker can retrieve the leaked token and reuse it in the X-Dgraph-AuthToken header to gain unauthorized access to admin-only endpoints such as /admin/config/cache_mb, bypassing the adminAuthHandler token validation. This enables unauthorized privileged administrative access including configuration changes and operational control actions in any deployment where the Alpha HTTP port is reachable by untrusted parties. This issue has been fixed in version 25.3.2.","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: Unauthenticated pprof endpoint leaks admin auth token","id":"CVE-2026-40173","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":9,"n_references":2,"next":{"headline":"Masa CMS CSRF in user address management allows unauthorized address changes","id":"CVE-2026-40174"},"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-5274"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.2.8"],"package":"github.com/dgraph-io/dgraph","purl":null,"source":"GHSA-95mq-xwj4-r47p"},{"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-95mq-xwj4-r47p"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["24.1.7"],"package":"github.com/dgraph-io/dgraph/v24","purl":null,"source":"GHSA-95mq-xwj4-r47p"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["24.1.7"],"package":"github.com/dgraph-io/dgraph/v24","purl":"pkg:golang/github.com/dgraph-io/dgraph/v24","source":"GHSA-95mq-xwj4-r47p"},{"ecosystem":"Go","fixed":["25.3.2"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":null,"source":"GHSA-95mq-xwj4-r47p"},{"ecosystem":"Go","fixed":["25.3.2"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GHSA-95mq-xwj4-r47p"},{"ecosystem":"Go","fixed":["25.3.2"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GO-2026-5274"},{"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-5274"}],"prev":{"headline":"authentik: Privilege Escalation via User PATCH: Superuser Group Assignment Bypasses enable_group_superuser","id":"CVE-2026-40172"},"products":["dgraph"],"published":"2026-04-15","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.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":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":"total"},"state":"PUBLISHED","updated":"2026-04-16","vendors":["dgraph-io"]},"summary":"Unauthenticated access to the pprof endpoint leaks the admin token, allowing attackers to gain unauthorized administrative control over the Dgraph database.","url":"https://insights.sbomify.com/CVE-2026-40173/"}