NVD Vulnerability Detail
Search Exploit, PoC
CVE-2026-42554
Summary

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.

Publication Date May 12, 2026, 8:19 a.m.
Registration Date May 13, 2026, 4:11 a.m.
Last Update May 19, 2026, 1:50 a.m.
CVSS3.1 : MEDIUM
スコア 6.1
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI)
影響の想定範囲(S) 変更あり
機密性への影響(C)
完全性への影響(I)
可用性への影響(A) なし
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* 2.52.12
cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* 3.0.0 3.1.0
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
GofiberのFiberにおけるクロスサイトスクリプティングの脆弱性
Title GofiberのFiberにおけるクロスサイトスクリプティングの脆弱性
Summary

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で修正されました。

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

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

Publication Date May 11, 2026, midnight
Registration Date May 20, 2026, 1:29 p.m.
Last Update May 20, 2026, 1:29 p.m.
Affected System
Gofiber
Fiber 2.52.12 未満
Fiber 3.0.0 以上 3.1.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月20日]
  掲載
May 20, 2026, 1:29 p.m.