Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-40302— zrok has reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering

CVSS 6.1 · Medium EPSS 0.01% · P1
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-40302

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
zrok has reflected XSS in GitHub OAuth callback via unsanitized refreshInterval error rendering
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: NVD (National Vulnerability Database)
Vulnerability Title
zrok 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
zrok是OpenZiti开源的一个安全的互联网共享工具。 zrok 2.0.1之前版本存在安全漏洞,该漏洞源于使用text/template模板引擎且未对refreshInterval参数进行转义,可能导致跨站脚本攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
openzitizrok < 2.0.1 -

II. Public POCs for CVE-2026-40302

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40302

登录查看更多情报信息。

Same Patch Batch · openziti · 2026-04-17 · 3 CVEs total

CVE-2026-403037.5 HIGHzrok allows unauthenticated DoS via unbounded memory allocation in striped session cookie
CVE-2026-403045.3 MEDIUMzrok's broken ownership check in DELETE /api/v2/unaccess allows non-admin to delete global

IV. Related Vulnerabilities

V. Comments for CVE-2026-40302

No comments yet


Leave a comment