製品・ソフトウェアに関する情報
goshsにおけるクロスサイトリクエストフォージェリの脆弱性
Title goshsにおけるクロスサイトリクエストフォージェリの脆弱性
Summary

goshsはGoで書かれたSimpleHTTPServerです。バージョン2.0.2より前のPUTアップロードハンドラには、修正済みのPOSTアップロードハンドラにあるCSRFトークン検証がありませんでした。また、OPTIONSプリフライトハンドラで条件なしにAccess-Control-Allow-Origin: *が設定されているため、任意のウェブサイトが被害者のブラウザを通じてgoshsインスタンスに任意のファイルを書き込むことができ、ネットワーク分離を回避できます。この問題はバージョン2.0.2で修正されています。

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

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

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

NVD Vulnerability Information
CVE-2026-42091
Summary

goshs is a SimpleHTTPServer written in Go. Prior to version 2.0.2, the PUT upload handler (httpserver/updown.go) lacks the CSRF token validation that was added to the POST upload handler during the CVE-2026-40883 fix. Combined with the unconditional Access-Control-Allow-Origin: * on the OPTIONS preflight handler (httpserver/server.go), any website can write arbitrary files to a goshs instance through the victim's browser — bypassing network isolation (e.g. localhost, internal network). This issue has been patched in version 2.0.2.

Publication Date May 5, 2026, 3:16 a.m.
Registration Date May 5, 2026, 4:07 a.m.
Last Update May 8, 2026, 12:15 a.m.
Related information, measures and tools
Common Vulnerabilities List