{"id":"CVE-2026-40304","aliases":["CVE-2026-40304","GHSA-3jpj-v3xr-5h6g","GO-2026-5090"],"related":[],"kind":"vulnerability","state":"published","title":"zrok's broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Summary\nThe 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.\n\nAttack Vector: Network — the endpoint is a standard HTTP API call.\n\nAttack Complexity: High — successful exploitation requires prior knowledge of a global frontend token. These tokens are not returned to non-admin users by any standard API endpoint; obtaining one requires an out-of-band step (e.g., leaked server logs, admin documentation for a self-hosted instance, or social engineering).\n\nPrivileges Required: Low — a valid user account with at least one registered environment is required; no admin privileges needed.\n\nUser Interaction: None.\n\nScope: Unchanged — the impact stays within the same server instance.\n\nConfidentiality Impact: None — no data is disclosed.\n\nIntegrity Impact: None — no data is improperly modified; the record is deleted (not corrupted).\n\nAvailability Impact: High — deleting a global frontend disrupts every public share routed through it on the instance, constituting a platform-wide availability impact.\n\nAffected Component\ncontroller/unaccess.go — unaccessHandler.Handle (line 56)","format":"markdown","source":"ghsa"},{"lang":"en","text":"zrok: Broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records in github.com/openziti/zrok","format":"markdown","source":"go"},{"lang":"es","text":"zrok es un software para compartir servicios web, archivos y recursos de red. Antes de la versión 2.0.1, el gestor de desacceso (controller/unaccess.go) contiene un error lógico en su protección de propiedad: cuando un registro de frontend tiene environment_id = NULL (el marcador para frontends globales creados por administradores), la condición se cortocircuita a falso y permite que la eliminación proceda sin ninguna verificación de propiedad. Un usuario no administrador que conoce un token de frontend global puede llamar a DELETE /api/v2/unaccess con cualquiera de sus propios IDs de entorno y eliminar permanentemente el frontend global, derribando todas las comparticiones públicas enrutadas a través de él. La versión 2.0.1 parchea el problema.","source":"nvd"}],"published":"2026-04-16T21:09:23.000Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"}],"cwes":["CWE-284","CWE-863"],"affected":[{"ranges":[{"version":"< 2.0.1","status":"affected"}],"vendor":"openziti","product":"zrok","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.1.11"}],"ecosystem":"Go","package":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"Go","package":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"Go","package":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.0.1"}],"vendor":"netfoundry","product":"zrok","cpe":"cpe:2.3:a:netfoundry:zrok:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openziti/zrok/security/advisories/GHSA-3jpj-v3xr-5h6g","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openziti/zrok/releases/tag/v2.0.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40304","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/openziti/zrok","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-20T14:51:35.879Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40304","url":"https://www.cve.org/CVERecord?id=CVE-2026-40304","licence":"CVE Terms of Use","modified":"2026-04-20T14:57:24.486Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3jpj-v3xr-5h6g","url":"https://github.com/advisories/GHSA-3jpj-v3xr-5h6g","licence":"CC-BY-4.0","modified":"2026-06-25T18:56:36.803Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5090","url":"https://pkg.go.dev/vuln/GO-2026-5090","licence":"CC-BY-4.0","modified":"2026-06-25T18:45:17.936Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40304","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40304","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.971Z","epss":{"score":0.00372,"percentile":0.23178,"date":"2026-11-30T12:00:22.000Z"}}