{"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-34976 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-34976 is a critical missing authorization vulnerability in dgraph-io dgraph, published on 6 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-34976 and fix it if it is affected.\n\nWhat it is: CVE-2026-34976 is a critical missing authorization vulnerability in dgraph-io dgraph, published on 6 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-34976 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.0.5; no fix listed\n- github.com/dgraph-io/dgraph/v24 (Go): affected all versions up to 24.0.5; no fix listed\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.1\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.1\n- github.com/dgraph-io/dgraph/v25 (Go): affected all versions; fixed in 25.3.1\n- github.com/hypermodeinc/dgraph/v24 (Go): affected from 24.0.0; fixed in 24.1.6\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-34976/ (Markdown: https://insights.sbomify.com/CVE-2026-34976/index.md)","id":"CVE-2026-34976","markdown":"https://insights.sbomify.com/CVE-2026-34976/index.md","name":"CVE-2026-34976","record":{"aliases":["GHSA-p5rh-vmhp-gvcw","GO-2026-5529"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_modify","data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Dgraph database","requires_auth":"none","summary":"Unauthenticated attackers can overwrite the database, read server files, and perform SSRF via the restoreTenant mutation due to missing authorization checks.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dgraph","vendor":"dgraph"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"description":"Dgraph is an open source distributed GraphQL database. Prior to 25.3.1, the restoreTenant admin mutation is missing from the authorization middleware config (admin.go), making it completely unauthenticated. Unlike the similar restore mutation which requires Guardian-of-Galaxy authentication, restoreTenant executes with zero middleware. This mutation accepts attacker-controlled backup source URLs (including file:// for local filesystem access), S3/MinIO credentials, encryption key file paths, and Vault credential file paths. An unauthenticated attacker can overwrite the entire database, read server-side files, and perform SSRF. This vulnerability is fixed in 25.3.1.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-34976.yaml","stars":null,"title":"Dgraph \u003c=v25.3.0 - Admin Mutation Missing Authorization"}],"tier":"weaponised"},"has_fix":true,"headline":"Dgraph Affected by Pre-Auth Database Overwrite + SSRF + File Read via restoreTenant Missing Authorization","id":"CVE-2026-34976","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":9,"n_references":1,"next":{"headline":"Aperi'Solve Affected by Unauthenticated RCE via JPSeek Analyzer Command","id":"CVE-2026-34977"},"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-5529"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.2.8"],"package":"github.com/dgraph-io/dgraph","purl":null,"source":"GHSA-p5rh-vmhp-gvcw"},{"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-p5rh-vmhp-gvcw"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["24.0.5"],"package":"github.com/dgraph-io/dgraph/v24","purl":null,"source":"GHSA-p5rh-vmhp-gvcw"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["24.0.5"],"package":"github.com/dgraph-io/dgraph/v24","purl":"pkg:golang/github.com/dgraph-io/dgraph/v24","source":"GHSA-p5rh-vmhp-gvcw"},{"ecosystem":"Go","fixed":["25.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":null,"source":"GHSA-p5rh-vmhp-gvcw"},{"ecosystem":"Go","fixed":["25.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GHSA-p5rh-vmhp-gvcw"},{"ecosystem":"Go","fixed":["25.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/dgraph-io/dgraph/v25","purl":"pkg:golang/github.com/dgraph-io/dgraph/v25","source":"GO-2026-5529"},{"ecosystem":"Go","fixed":["24.1.6"],"introduced":["24.0.0"],"last_affected":[],"package":"github.com/hypermodeinc/dgraph/v24","purl":"pkg:golang/github.com/hypermodeinc/dgraph/v24","source":"GO-2026-5529"}],"prev":{"headline":"Other in plunk","id":"CVE-2026-34975"},"products":["dgraph"],"published":"2026-04-06","related":[{"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":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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-07","vendors":["dgraph-io"]},"summary":"Unauthenticated attackers can overwrite the database, read server files, and perform SSRF via the restoreTenant mutation due to missing authorization checks.","url":"https://insights.sbomify.com/CVE-2026-34976/"}