{"id":"CVE-2026-40302","revision":"ec3e2fb927094fb5bd8a161542b6325f","records":[{"revision":"ec3e2fb927094fb5bd8a161542b6325f","observedAt":"2026-10-25T09:17:24.328+00:00","statement":{"source":"nvd","id":"CVE-2026-40302","aliases":[],"title":"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 handl…","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-17T21:16:34.997+00:00","modifiedAt":"2026-06-17T10:44:58.15+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","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/releases/tag/v2.0.1","https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40302","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-79","CWE-116"],"productCriteria":["cpe:2.3:a:netfoundry:zrok:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-04-17T21:16:34.997","lastModified":"2026-06-17T10:44:58.150"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-40302","identifiers":["CVE-2026-40302"]},"retained":false,"historicalAffected":[]}],"coverage":[]}