{"id":"CVE-2026-40302","revision":"25811f1946ea4f09b38a8b783ebe5e36","records":[{"revision":"25811f1946ea4f09b38a8b783ebe5e36","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-40302","aliases":[],"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 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.","state":0,"publishedAt":"2026-04-17T20:56:08.368+00:00","modifiedAt":"2026-04-18T03:07:10.092+00:00","affected":[{"ecosystem":"Vendor product","name":"zrok","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"openziti\",\n                    \"product\": \"zrok\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.0.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx","https://github.com/openziti/zrok/releases/tag/v2.0.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-40302","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-40302","identifiers":["CVE-2026-40302"]},"retained":false,"historicalAffected":[]}],"coverage":[]}