Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40302: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in openziti zrok

0
Medium
VulnerabilityCVE-2026-40302cvecve-2026-40302cwe-79cwe-116
Published: Fri Apr 17 2026 (04/17/2026, 20:56:08 UTC)
Source: CVE Database V5
Vendor/Project: openziti
Product: zrok

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/17/2026, 21:23:15 UTC

Technical Analysis

The vulnerability in openziti zrok (before version 2.0.1) involves improper neutralization of input during web page generation (CWE-79). The proxyUi template engine uses Go's text/template instead of html/template, resulting in no HTML escaping of user input. Specifically, the GitHub OAuth callback handlers embed the attacker-controlled refreshInterval query parameter directly into an error message when time.ParseDuration fails, rendering it unescaped in HTML. This allows an attacker to execute arbitrary JavaScript in the OAuth server's origin after a victim completes the OAuth flow. The issue is resolved in version 2.0.1.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the OAuth server's origin, potentially leading to information disclosure or session manipulation. The CVSS score is 6.1 (medium severity), indicating a moderate impact with network attack vector, no privileges required, user interaction needed, and both confidentiality and integrity impacts.

Mitigation Recommendations

Upgrade openziti zrok to version 2.0.1 or later, where this vulnerability is patched by switching to the html/template engine that properly escapes HTML content. Since the vendor advisory confirms the fix in 2.0.1, applying this official update fully mitigates the issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-10T20:22:44.036Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e2a136bdfbbecc59908367

Added to database: 4/17/2026, 9:08:06 PM

Last enriched: 4/17/2026, 9:23:15 PM

Last updated: 4/21/2026, 8:35:12 AM

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses