製品・ソフトウェアに関する情報
GoHugoのHugoにおけるクロスサイトスクリプティングの脆弱性
Title GoHugoのHugoにおけるクロスサイトスクリプティングの脆弱性
Summary

Hugoは静的サイトジェネレーターです。バージョン0.60.0から0.159.2未満の間、デフォルトのMarkdownからHTMLへのレンダラーにおいて、リンクと画像リンクが適切にエスケープされていませんでした。Markdownの内容を信頼しているHugoユーザーや、リンクおよび画像に対してカスタムレンダーフックを持つユーザーは影響を受けません。この脆弱性はバージョン0.159.2で修正されました。

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

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

Publication Date April 6, 2026, midnight
Registration Date April 21, 2026, 10:46 a.m.
Last Update April 21, 2026, 10:46 a.m.
CVSS3.0 : 警告
Score 5.4
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected System
GoHugo
Hugo 0.60.0 以上 0.159.2 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月21日]
  掲載
April 21, 2026, 10:46 a.m.

NVD Vulnerability Information
CVE-2026-35166
Summary

Hugo is a static site generator. From 0.60.0 to before 0.159.2, links and image links in the default markdown to HTML renderer are not properly escaped. Hugo users who trust their Markdown content or have custom render hooks for links and images are not affected. This vulnerability is fixed in 0.159.2.

Publication Date April 7, 2026, 3:16 a.m.
Registration Date April 15, 2026, 11:27 a.m.
Last Update April 21, 2026, 3:34 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:linux:*:* 0.60.0 0.159.2
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:macos:*:* 0.60.0 0.159.2
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:windows:*:* 0.60.0 0.159.2
Related information, measures and tools
Common Vulnerabilities List