CVE Catalog

CVE-2026-40302

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.21%

11th percentile - higher than 11% of all known CVEs

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 (no HTML escaping) instead of html/template, and the GitHub OAuth callback handlers in publicProxy and dynamicProxy embed the attacker-controlled refreshInterval parameter unescaped into an error message. An attacker can deliver a crafted login URL so that, after the victim completes the GitHub OAuth flow, the callback page executes arbitrary JavaScript in the OAuth server's origin.

Risk Assessment

XSS in the OAuth server context may allow an attacker to execute malicious script in the victim's browser and steal session data. Version 2.0.1 contains the fix.

Recommendation

Update zrok to version 2.0.1 or later. Until updated, consider restricting access to OAuth callback endpoints and monitoring for suspicious requests.

Other vulnerabilities in zrok

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS