CVE-2026-40302 json
zrok has reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering
published 2026-04-16 6 mo ago modified 2026-10-26 13 d ago also GHSA-4fxq-2x3x-6xqx , GO-2026-5118 , EUVD-2026-23547
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 11%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/openziti/zrok/v2 2.0.1
- netfoundry zrok 2.0.1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/openziti/zrok | <=1.1.11 all versions |
no fix listed |
| go | github.com/openziti/zrok/v2 | <2.0.1 |
2.0.1 |
Affected products
- openziti zrok
Classification
References
-
github.com
/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx
web, vendor-advisory, advisory
-
github.com
/openziti/zrok/releases/tag/v2.0.1
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-40302
advisory
-
github.com
/openziti/zrok
package
Sources
- CVE List CVE-2026-40302
- GitHub Advisory GHSA-4fxq-2x3x-6xqx
- NVD CVE-2026-40302
- OSV GO-2026-5118
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.