CVE-2026-40302
Published:April 17, 2026
Updated:April 23, 2026
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.
Affected Packages
https://github.com/openziti/zrok.git (GITHUB):
Affected version(s) >=v1.1.0 <v2.0.1Fix Suggestion:
Update to version v2.0.1github.com/openziti/zrok (GO):
Affected version(s) >=v1.1.0 <v2.0.1Fix Suggestion:
Update to version v2.0.1github.com/openziti/zrok/v2 (GO):
Affected version(s) >=v2.0.0-rc4 <v2.0.1Fix Suggestion:
Update to version v2.0.1Related ResourcesĀ (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.01