# CVE-2026-40304: zrok's broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global frontend records

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 23% of CVEs (2026-11-30)
- Published: 2026-04-16T21:09:23.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-3jpj-v3xr-5h6g, GO-2026-5090
- Weaknesses: CWE-284, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- openziti zrok: < 2.0.1
- github.com/openziti/zrok (Go): up to 1.1.11; all versions
- github.com/openziti/zrok/v2 (Go): before 2.0.1
- netfoundry zrok: before 2.0.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/openziti/zrok/security/advisories/GHSA-3jpj-v3xr-5h6g> (advisory, vendor-advisory, web)
- <https://github.com/openziti/zrok/releases/tag/v2.0.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40304> (advisory)
- <https://github.com/openziti/zrok> (package)

## Sources

- CVE List: [CVE-2026-40304](https://www.cve.org/CVERecord?id=CVE-2026-40304), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-3jpj-v3xr-5h6g](https://github.com/advisories/GHSA-3jpj-v3xr-5h6g), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5090](https://pkg.go.dev/vuln/GO-2026-5090), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40304](https://nvd.nist.gov/vuln/detail/CVE-2026-40304), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40304 · Whole record: https://cve.day/CVE-2026-40304.json · Rebuilt by cve.day 2026-11-25T22:59:18.971Z
