{"cve":"CVE-2026-40304","nvd":{"published":"2026-04-17T22:16:32.230","modified":"2026-10-26T22:10:00.163","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.3},"cwes":["CWE-284","CWE-863"],"references":["https://github.com/openziti/zrok/releases/tag/v2.0.1","https://github.com/openziti/zrok/security/advisories/GHSA-3jpj-v3xr-5h6g"],"products":["netfoundry:zrok"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40304","score":0.00286,"percentile":0.20916,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-3jpj-v3xr-5h6g","url":"https://osv.dev/vulnerability/GHSA-3jpj-v3xr-5h6g","summary":"zrok: Broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records","modified":"2026-06-25T18:56:36.803353971Z","packages":[{"ecosystem":"Go","name":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","ranges":["<=1.1.11"],"fixed":[]},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","ranges":["<2.0.1"],"fixed":["2.0.1"]}]},{"id":"GO-2026-5090","url":"https://osv.dev/vulnerability/GO-2026-5090","summary":"zrok: Broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records in github.com/openziti/zrok","modified":"2026-06-25T18:45:17.936046527Z","packages":[{"ecosystem":"Go","name":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","ranges":["<2.0.1"],"fixed":["2.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}