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…
EPSS 0.0%top 98%

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

CVE-2026-40302 is a cross-site scripting (XSS) vulnerability in openziti zrok versions prior to 2. 0. 1. The issue arises because the proxyUi template engine uses Go's text/template, which does not perform HTML escaping, instead of html/template. Specifically, the GitHub OAuth callback handlers embed the attacker-controlled refreshInterval query parameter directly into an error message that is rendered unescaped in HTML. This allows an attacker to craft a login URL that, after the victim completes the OAuth flow, causes arbitrary JavaScript execution in the OAuth server's origin. Version 2. 0. 1 addresses this vulnerability.

CVSS v3.1

Score 6.1medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/25/2026, 03:03:14 UTC

Technical Analysis

The vulnerability in openziti zrok (before version 2.0.1) is due to improper neutralization of input during web page generation (CWE-79). The proxyUi template engine uses Go's text/template which lacks HTML escaping, causing the attacker-controlled refreshInterval query parameter to be embedded verbatim into an error message when time.ParseDuration fails. This error message is then rendered unescaped into HTML in the GitHub OAuth callback handlers (publicProxy and dynamicProxy). An attacker can exploit this by delivering a crafted login URL that triggers arbitrary JavaScript execution in the OAuth server's origin after the victim completes the OAuth flow. The vulnerability has a CVSS 3.1 score of 6.1 (medium severity). The issue is fixed 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 after a victim completes the GitHub OAuth flow. This can lead to information disclosure or session manipulation limited to the OAuth server's origin. The vulnerability does not impact availability and requires user interaction (UI:R). The CVSS score is 6.1, indicating a medium severity impact with confidentiality and integrity impacts.

Mitigation Recommendations

Upgrade openziti zrok to version 2.0.1 or later, where the vulnerability is patched by switching to the html/template engine that performs proper HTML escaping. No other mitigation is indicated or required as the fix is available in the official release.

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/25/2026, 3:03:14 AM

Last updated: 6/4/2026, 8:38:18 AM

Views: 75

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