Home / CVE DB / CVE-2026-40302
Standard
Vulnerability Identifier

CVE-2026-40302

2026-04-17
Severity Assessment
6.1
MEDIUM
CVSS v3.x Score
Clinical Analysis (Description)

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.

Vector Sequencing

Attack Parameters

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Impact Consequences

Technical Impact

Changed
Scope
Low
Confidentiality
Low
Integrity
None
Availability
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Classification

CWE-CWE-79

Timeline

Time Line

PUBLICATION
17 Apr 2026
Impact Statistics

Key Metrics

CVSS Score
6.1
MEDIUM
Remediation Protocol

Recommended Solution

No automatic solution found. Check vendor references.
Patch Library
No direct patch listed in database.
Recommended Actions for Administrators

Immediate Action Plan

1. Inventory

Identify all affected systems in your infrastructure.

2. Assessment

Assess exposure and criticality for your organization.

3. Mitigation

Apply patches or available workarounds.

4. Verification

Test and confirm effectiveness of applied measures.