{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40302","id":"CVE-2026-40302","title":"zrok has reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering","description":"zrok is software for sharing web services, files, and network resources. Prior to version 2.0.1, the proxyUi template engine uses Go's text/template (which performs no HTML escaping) instead of html/template. The GitHub OAuth callback handlers in both publicProxy and dynamicProxy embed the attacker-controlled refreshInterval query parameter verbatim into an error message when time.ParseDuration fa","descriptionLong":"zrok is software for sharing web services, files, and network resources. Prior to version 2.0.1, the proxyUi template engine uses Go's text/template (which performs no HTML escaping) instead of html/template. The GitHub OAuth callback handlers in both publicProxy and dynamicProxy embed the attacker-controlled refreshInterval query parameter verbatim into an error message when time.ParseDuration fails, and render that error unescaped into HTML. An attacker can deliver a crafted login URL to a victim; after the victim completes the GitHub OAuth flow, the callback page executes arbitrary JavaScript in the OAuth server's origin. Version 2.0.1 patches the issue.","published":"2026-04-17T20:56:08.368Z","updated":"2026-10-28T02:30:25.892636622Z","reserved":"2026-04-10T20:22:44.036Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["openziti zrok"],"affectedProducts":[{"vendor":"openziti","product":"zrok","defaultStatus":null,"versions":[{"version":"< 2.0.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","ranges":["<=1.1.11","all versions"],"fixed":[],"advisory":"GHSA-4fxq-2x3x-6xqx"},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","ranges":["<2.0.1"],"fixed":["2.0.1"],"advisory":"GHSA-4fxq-2x3x-6xqx"}],"cwes":["CWE-79","CWE-116"],"aliases":["GHSA-4fxq-2x3x-6xqx","GO-2026-5118"],"references":[{"url":"https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/openziti/zrok/releases/tag/v2.0.1","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40302.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40302","tags":["advisory"]},{"url":"https://github.com/openziti/zrok","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00213,"epssPercentile":0.11672,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40302","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40302","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40302","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4fxq-2x3x-6xqx","ok":true,"note":"GHSA-4fxq-2x3x-6xqx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40302","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}