{"id":"CVE-2026-40304","state":"PUBLISHED","title":"zrok's broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records","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.","publishedAt":"2026-04-17T21:04:23.648Z","updatedAt":"2026-04-20T14:57:24.486Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["openziti zrok"],"affected":[{"vendor":"openziti","product":"zrok","versions":[{"version":"< 2.0.1","status":"affected"}]}],"references":["https://github.com/openziti/zrok/security/advisories/GHSA-3jpj-v3xr-5h6g","https://github.com/openziti/zrok/releases/tag/v2.0.1"],"weaknesses":["CWE-284","CWE-863"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40304.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40304","state":"PUBLISHED","datePublished":"2026-04-17T21:04:23.648Z","dateUpdated":"2026-04-20T14:57:24.486Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-10T21:41:54.504Z"},"containers":{"cna":{"title":"zrok's broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"openziti","product":"zrok","versions":[{"version":"< 2.0.1","status":"affected"}]}],"references":[{"url":"https://github.com/openziti/zrok/security/advisories/GHSA-3jpj-v3xr-5h6g","name":"https://github.com/openziti/zrok/security/advisories/GHSA-3jpj-v3xr-5h6g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openziti/zrok/releases/tag/v2.0.1","name":"https://github.com/openziti/zrok/releases/tag/v2.0.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","lang":"en","description":"CWE-284: Improper Access Control","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"CWE-863: Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-17T21:04:23.648Z"},"source":{"advisory":"GHSA-3jpj-v3xr-5h6g","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-20T14:51:35.879686Z","id":"CVE-2026-40304","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-20T14:57:24.486Z"}}]}}}