{"cve":"CVE-2026-40302","nvd":{"published":"2026-04-17T21:16:34.997","modified":"2026-10-26T22:10:00.163","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-79","CWE-116"],"references":["https://github.com/openziti/zrok/releases/tag/v2.0.1","https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx"],"products":["netfoundry:zrok"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40302","score":0.00209,"percentile":0.10983,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-4fxq-2x3x-6xqx","url":"https://osv.dev/vulnerability/GHSA-4fxq-2x3x-6xqx","summary":"zrok: Reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering","modified":"2026-06-25T18:56:29.323523594Z","packages":[{"ecosystem":"Go","name":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","ranges":["<=1.1.11"],"fixed":[]},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","ranges":["<2.0.1"],"fixed":["2.0.1"]}]},{"id":"GO-2026-5118","url":"https://osv.dev/vulnerability/GO-2026-5118","summary":"zrok: Reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering in github.com/openziti/zrok","modified":"2026-06-25T18:45:22.459583521Z","packages":[{"ecosystem":"Go","name":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","ranges":["<2.0.1"],"fixed":["2.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}