HTML Injection Vulnerability in zrok Software by OpenZiti
CVE-2026-40302
6.1MEDIUM
What is CVE-2026-40302?
The zrok software, used for sharing web services and files, contains a critical vulnerability prior to version 2.0.1. The issue lies in the proxyUi template engine, which utilizes Go's text/template, failing to perform necessary HTML escaping. As a result, the GitHub OAuth callback handlers in publicProxy and dynamicProxy directly embed the attacker-controlled refreshInterval query parameter into an error message without proper sanitization. This vulnerability allows an attacker to craft a malicious login URL that can execute arbitrary JavaScript within the OAuth server's origin once the victim completes the authentication process. It is essential for users to upgrade to version 2.0.1 or later to mitigate this security risk.
Affected Version(s)
zrok < 2.0.1
