製品・ソフトウェアに関する情報
NetFoundryのzrokにおける複数の脆弱性
Title NetFoundryのzrokにおける複数の脆弱性
Summary

zrokはウェブサービス、ファイル、およびネットワークリソースを共有するためのソフトウェアです。バージョン2.0.1以前では、proxyUiテンプレートエンジンがhtml/templateではなくGoのtext/template(HTMLエスケープを行わない)を使用していました。publicProxyおよびdynamicProxyのGitHub OAuthコールバックハンドラーは、time.ParseDurationが失敗した際に攻撃者が制御するrefreshIntervalクエリパラメータをエラーメッセージにそのまま埋め込み、そのエラーをHTMLにエスケープせずにレンダリングします。攻撃者は巧妙に作成したログインURLを被害者に送信でき、被害者がGitHub OAuthフローを完了すると、コールバックページはOAuthサーバのオリジン上で任意のJavaScriptを実行します。この問題はバージョン2.0.1で修正されました。

Possible impacts 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 17, 2026, midnight
Registration Date April 27, 2026, 11:27 a.m.
Last Update April 27, 2026, 11:27 a.m.
CVSS3.0 : 警告
Score 6.1
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected System
NetFoundry
zrok 2.0.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月27日]
  掲載
April 27, 2026, 11:27 a.m.

NVD Vulnerability Information
CVE-2026-40302
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 (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.

Publication Date April 18, 2026, 6:16 a.m.
Registration Date April 19, 2026, 4:08 a.m.
Last Update April 24, 2026, 3:32 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:netfoundry:zrok:*:*:*:*:*:*:*:* 2.0.1
Related information, measures and tools
Common Vulnerabilities List