{"answers":{"affected":"6 open source packages ship an affected version, including github.com/openziti/zrok and github.com/openziti/zrok/v2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40304 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-40304 is a medium-severity missing authorization vulnerability in openziti zrok, published on 17 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40304 and fix it if it is affected.\n\nWhat it is: CVE-2026-40304 is a medium-severity missing authorization vulnerability in openziti zrok, published on 17 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40304 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/openziti/zrok (Go): affected all versions; no fix listed\n- github.com/openziti/zrok (Go): affected all versions up to 1.1.11; no fix listed\n- github.com/openziti/zrok (Go): affected all versions up to 1.1.11; no fix listed\n- github.com/openziti/zrok/v2 (Go): affected all versions; fixed in 2.0.1\n- github.com/openziti/zrok/v2 (Go): affected all versions; fixed in 2.0.1\n- github.com/openziti/zrok/v2 (Go): affected all versions; fixed in 2.0.1\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-40304/ (Markdown: https://insights.sbomify.com/CVE-2026-40304/index.md)","id":"CVE-2026-40304","markdown":"https://insights.sbomify.com/CVE-2026-40304/index.md","name":"CVE-2026-40304","record":{"aliases":["GHSA-3jpj-v3xr-5h6g","GO-2026-5090"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"zrok sharing service","requires_auth":"low_privilege","summary":"A non-admin user can delete global frontend records in zrok, disrupting public shares, due to a broken ownership check.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zrok","vendor":"netfoundry"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-284","name":"Improper Access Control"}],"description":"zrok is software for sharing web services, files, and network resources. Prior to version 2.0.1, the unaccess handler (controller/unaccess.go) contains a logical error in its ownership guard: when a frontend record has environment_id = NULL (the marker for admin-created global frontends), the condition short-circuits to false and allows the deletion to proceed without any ownership verification. A non-admin user who knows a global frontend token can call DELETE /api/v2/unaccess with any of their own environment IDs and permanently delete the global frontend, taking down all public shares routed through it. Version 2.0.1 patches the issue.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"zrok's broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records","id":"CVE-2026-40304","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":6,"n_references":2,"next":{"headline":"DNN has Force Friend Request Acceptance","id":"CVE-2026-40305"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","source":"GO-2026-5090"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.1.11"],"package":"github.com/openziti/zrok","purl":null,"source":"GHSA-3jpj-v3xr-5h6g"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.1.11"],"package":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","source":"GHSA-3jpj-v3xr-5h6g"},{"ecosystem":"Go","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"github.com/openziti/zrok/v2","purl":null,"source":"GHSA-3jpj-v3xr-5h6g"},{"ecosystem":"Go","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","source":"GHSA-3jpj-v3xr-5h6g"},{"ecosystem":"Go","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","source":"GO-2026-5090"}],"prev":{"headline":"zrok allows unauthenticated DoS via unbounded memory allocation in striped session cookie parsing","id":"CVE-2026-40303"},"products":["zrok"],"published":"2026-04-17","related":[{"cvss_score":9.9,"headline":"zrok Python ProxyShare can be used as an SSRF proxy through absolute URL paths","id":"CVE-2026-45568","kev_date_added":null,"published":"2026-07-16"},{"cvss_score":8.7,"headline":"zrok: WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write","id":"CVE-2026-42275","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":8.3,"headline":"zrok copy writes attacker-controlled WebDAV paths outside the destination root","id":"CVE-2026-45576","kev_date_added":null,"published":"2026-07-16"},{"cvss_score":7.5,"headline":"zrok allows unauthenticated DoS via unbounded memory allocation in striped session cookie parsing","id":"CVE-2026-40303","kev_date_added":null,"published":"2026-04-17"},{"cvss_score":6.1,"headline":"zrok has reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering","id":"CVE-2026-40302","kev_date_added":null,"published":"2026-04-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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-20","vendors":["openziti"]},"summary":"A non-admin user can delete global frontend records in zrok, disrupting public shares, due to a broken ownership check.","url":"https://insights.sbomify.com/CVE-2026-40304/"}