{"id":"GHSA-4fxq-2x3x-6xqx","revision":null,"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":[]},{"revision":"5552a6388bc3410ab64274fefd99486d","observedAt":"2026-11-01T06:16:15.837+00:00","statement":{"source":"euvd","id":"EUVD-2026-23547","aliases":["CVE-2026-40302","GHSA-4fxq-2x3x-6xqx"],"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":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD 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":null}],"references":["https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx","https://github.com/openziti/zrok/releases/tag/v2.0.1"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-23547","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 17, 2026, 8:56:08 PM","dateUpdated":"Apr 18, 2026, 3:07:10 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-23547","identifiers":["EUVD-2026-23547","CVE-2026-40302","GHSA-4fxq-2x3x-6xqx"]},"retained":false,"historicalAffected":[]},{"revision":"7d52d6fa0d824444a7188b135a5e09b1","observedAt":"2026-10-27T10:09:56.341+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-10-26T22:10:00.163+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-10-26T22:10:00.163"},"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":[]},{"revision":"fa22a4e970014e74b53531a760b792fd","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-4fxq-2x3x-6xqx","aliases":["CVE-2026-40302","GO-2026-5118"],"title":"zrok: Reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering","description":"**Summary**\nThe 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.\n\n- Attack Vector: Network — the attack is delivered as a crafted URL over the internet.\n- Attack Complexity: Low — no race conditions or special environment prerequisites.\n- Privileges Required: None — the attacker needs no account on the zrok instance.\n- User Interaction: Required — the victim must click the crafted link and complete the GitHub OAuth flow.\n- Scope: Changed — the injected script executes in the OAuth server's origin, not the victim's share origin.\n- Confidentiality Impact: Low — the script runs in the OAuth server origin after a failed flow; no session cookie is set at this point, limiting what can be exfiltrated to what is visible in the DOM and what can be requested from the OAuth server.\n- Integrity Impact: Low — the script can initiate new OAuth flows or submit forms on behalf of the victim in the OAuth server origin.\n- Availability Impact: None.\n\n**Affected Components**\n\n- endpoints/proxyUi/template.go — init() / WriteTemplate (lines 8, 18, 99) — text/template used for HTML rendering\n- endpoints/proxyUi/template.html — line 119 — {{ .Error }} in HTML without escaping\n- endpoints/publicProxy/providerGithub.go — login callback closure (lines 93, 128, 130)\n- endpoints/dynamicProxy/providerGithub.go — loginHandler() (lines 110, 146, 148)","state":0,"publishedAt":"2026-04-16T21:08:55+00:00","modifiedAt":"2026-06-25T18:56:29.3235236+00:00","affected":[{"ecosystem":"Go","name":"github.com/openziti/zrok","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"1.1.11"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx","https://nvd.nist.gov/vuln/detail/CVE-2026-40302","https://github.com/openziti/zrok","https://github.com/openziti/zrok/releases/tag/v2.0.1"],"sourceUrl":"https://github.com/advisories/GHSA-4fxq-2x3x-6xqx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4fxq-2x3x-6xqx","identifiers":["GHSA-4fxq-2x3x-6xqx","CVE-2026-40302","GO-2026-5118"]},"retained":false,"historicalAffected":[]},{"revision":"b71869b411884ce0be7f88e1caabcc0d","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5118","aliases":["CVE-2026-40302","GHSA-4fxq-2x3x-6xqx"],"title":"zrok: Reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering in github.com/openziti/zrok","description":"zrok: Reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering in github.com/openziti/zrok","state":0,"publishedAt":"2026-06-25T18:26:48+00:00","modifiedAt":"2026-06-25T18:45:22.4595835+00:00","affected":[{"ecosystem":"Go","name":"github.com/openziti/zrok","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx","https://nvd.nist.gov/vuln/detail/CVE-2026-40302","https://github.com/openziti/zrok/releases/tag/v2.0.1"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5118","license":"OSV · upstream source license applies","key":"osv:GO-2026-5118","identifiers":["GO-2026-5118","CVE-2026-40302","GHSA-4fxq-2x3x-6xqx"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-01T16:57:22.1666445+00:00","complete":true,"records":1766,"lastAttemptAt":"2026-11-01T16:57:22.1666445+00:00","lastSuccessAt":"2026-11-01T16:57:22.3213113+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:22.3213122+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-aece262bb10a694367a43c24d730aa8e8dc171723eaec4c15cdd32f04bda103f-585642db5fd5f5a045fdfca4b18984aef177ee17d65cc7f04f45379403194285","complete":true,"records":417664,"lastAttemptAt":"2026-11-01T16:57:21.0753446+00:00","lastSuccessAt":"2026-11-01T16:57:21.0470885+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.0753446+00:00","snapshotPublishedAt":"2026-11-01T16:32:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-d4277393664142728b582cdd9a5ee17c","complete":false,"records":13568,"lastAttemptAt":"2026-11-01T17:08:13.5810621+00:00","lastSuccessAt":"2026-11-01T17:08:13.7268232+00:00","error":null,"lastVerifiedAt":"2026-11-01T17:08:13.7268232+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-01T16:57:22.1666445+00:00","complete":true,"records":1095,"lastAttemptAt":"2026-11-01T16:57:22.1666445+00:00","lastSuccessAt":"2026-11-01T16:57:22.3220592+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:22.3220593+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-86ffd04e61a14524b2bdedd1ba2e339d","complete":true,"records":13580,"lastAttemptAt":"2026-11-01T16:57:47.7627092+00:00","lastSuccessAt":"2026-11-01T16:57:47.759+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:47.759+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13637,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-21dcd6662970dfea02e4ea60ee637115e8d92664947484d2b9276b3f6568a84f","complete":true,"records":9815,"lastAttemptAt":"2026-11-01T16:57:21.7362922+00:00","lastSuccessAt":"2026-10-30T23:47:34.1817587+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.7362922+00:00","snapshotPublishedAt":"2026-10-30T23:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-11-01T16:57:21.2364439+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.2364439+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f95f76cd406ae5bae3de632ad37fd2d5160b44f5e6b51748ac6f8f0c0c88e72b","complete":true,"records":3028,"lastAttemptAt":"2026-11-01T16:57:22.1252506+00:00","lastSuccessAt":"2026-10-30T23:47:38.4914494+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:22.1252506+00:00","snapshotPublishedAt":"2026-10-30T23:18:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-55acacd40a7aab88cf530cfddf98233a5d800cfc6bb1883653ecf5bee50f4426","complete":true,"records":230996,"lastAttemptAt":"2026-11-01T16:57:21.6223649+00:00","lastSuccessAt":"2026-11-01T09:06:49.6961926+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.6223649+00:00","snapshotPublishedAt":"2026-11-01T08:33:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}