Home / openziti / zrok / CVE-2026-40302
CVE-2026-40302: is it exploited, and which versions of openziti zrok are affected and fixed?
CVE-2026-40302 is a cross-site scripting (XSS) vulnerability in openziti zrok. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: github.com/openziti/zrok through 1.1.11 and github.com/openziti/zrok/v2 before 2.0.1 (GitHub advisory GHSA-4fxq-2x3x-6xqx). Fixed in 2.0.1 (GitHub advisory GHSA-4fxq-2x3x-6xqx). Severity: Medium (6.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.
What is CVE-2026-40302?
zrok has reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering
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.
From the CVE record by GitHub_M, last updated April 18, 2026, 03:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| openziti | zrok | < 2.0.1 |
As the CVE record by GitHub_M states it, last updated April 18, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/openziti/zrok | <= 1.1.11 | none listed | GHSA-4fxq-2x3x-6xqx |
| Go | github.com/openziti/zrok/v2 | < 2.0.1 | 2.0.1 | GHSA-4fxq-2x3x-6xqx |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 24, 2026. Summary: zrok: Reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| netfoundry | zrok | before 2.0.1 | application |
NVD analysis (status Analyzed), last modified October 26, 2026, 22:10 UTC.
How severe is CVE-2026-40302?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40302 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 18, 2026)
- EPSS
- 0.21% probability of exploitation activity in the next 30 days, percentile 12.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
- CWE-116 Improper Encoding or Escaping of Output
Where are the vendor advisories and references?
- https://github.com/openziti/zrok/security/advisories/GHSA-4fxq-2x3x-6xqx x_refsource_CONFIRM
- https://github.com/openziti/zrok/releases/tag/v2.0.1 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 10, 2026
- Published
- April 17, 2026, 20:56 UTC
- CVE record updated
- April 18, 2026, 03:07 UTC by GitHub_M
- NVD
- Analyzed, last modified October 26, 2026, 22:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect zrok?
- Jul 16, 2026CVE-2026-45576 openziti zrok: path traversal (reading or writing files outside the intended folder)
- Jul 16, 2026CVE-2026-45568 openziti zrok: path traversal (reading or writing files outside the intended folder)
- May 8, 2026CVE-2026-42275 openziti zrok: UNIX Symbolic Link (Symlink) Following
- Apr 17, 2026CVE-2026-40304 openziti zrok: improper access control
- Apr 17, 2026CVE-2026-40303 openziti zrok: denial of service (uncontrolled resource consumption)
Questions about CVE-2026-40302
Is CVE-2026-40302 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.21% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of openziti zrok are affected by CVE-2026-40302?
github.com/openziti/zrok through 1.1.11 and github.com/openziti/zrok/v2 before 2.0.1, per the GitHub advisory GHSA-4fxq-2x3x-6xqx. The tables above give every range the sources list.
Which version fixes CVE-2026-40302?
2.0.1, per the GitHub advisory GHSA-4fxq-2x3x-6xqx. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40302?
Medium (6.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40302?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.