| タイトル | GofiberのFiberにおけるクロスサイトスクリプティングの脆弱性 |
|---|---|
| 概要 | FiberはGo用のウェブフレームワークです。バージョン2.52.12および3.1.0より前のバージョンには、Go Fiberにクロスサイトスクリプティングの脆弱性が存在しました。攻撃者がAccept: text/htmlを任意のリクエストに指定することで、影響を受けたデータをAutoFormat()機能に渡すハンドラを通じて、攻撃者が任意のHTML/JavaScriptを注入できる可能性があります。開発者はAutoFormat()を呼び出すことでコンテンツネゴシエーションを選択しますが、特定のリクエストに対して生のHTML出力を選択していません。しかし、Fiberは攻撃者がコントロールするAcceptヘッダーからhtmlの分岐を選択します。html分岐は、メソッド名(AutoFormat)および対称的な構造が「安全でフォーマットに依存しない応答」を積極的に示している中で唯一の例外となっています。この脆弱性はバージョン2.52.12および3.1.0で修正されました。 |
| 想定される影響 | 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月11日0:00 |
| 登録日 | 2026年5月20日13:29 |
| 最終更新日 | 2026年5月20日13:29 |
| CVSS3.0 : 警告 | |
| スコア | 6.1 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Gofiber |
| Fiber 2.52.12 未満 |
| Fiber 3.0.0 以上 3.1.0 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月20日] 掲載 |
2026年5月20日13:29 |
| 概要 | Fiber is a web framework for Go. Prior to 2.52.12 and 3.1.0, Cross-Site Scripting vulnerability in Go Fiber allows a remote attacker to inject arbitrary HTML/JavaScript by supplying Accept: text/html on any request whose handler passes attacker-influenced data to the AutoFormat() feature. The developer opts into content negotiation by calling AutoFormat(), but does not opt into raw HTML emission for a particular request; Fiber chooses that branch from attacker-controlled Accept. The html branch is the sole outlier in a method whose name (AutoFormat) and symmetrical structure actively telegraph "safe, format-agnostic reply." This vulnerability is fixed in 2.52.12 and 3.1.0. |
|---|---|
| 公表日 | 2026年5月12日8:19 |
| 登録日 | 2026年5月13日4:11 |
| 最終更新日 | 2026年5月19日1:50 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* | 2.52.12 | ||||
| cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* | 3.0.0 | 3.1.0 | |||