The Go ProjectのGoにおけるクロスサイトスクリプティングの脆弱性
タイトル The Go ProjectのGoにおけるクロスサイトスクリプティングの脆弱性
概要

HTMLのmetaタグのcontent属性にURLを挿入する操作がエスケープされていません。これにより、metaタグが値"refresh"を持つhttp-equiv属性を含む場合にXSSが発生する可能性があります。新しいGODEBUG設定としてhtmlmetacontenturlescapeが追加されており、htmlmetacontenturlescape=0に設定することで、metaのcontent属性内の"url="に続くアクションのURLエスケープを無効にできます。

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

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

公表日 2026年3月6日0:00
登録日 2026年4月23日10:14
最終更新日 2026年4月23日10:14
CVSS3.0 : 警告
スコア 6.1
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
影響を受けるシステム
The Go Project
Go 1.25.8 未満
Go 1.26.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年04月23日]
  掲載
2026年4月23日10:14

NVD脆弱性情報
CVE-2026-27142
概要

Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.

概要

Acciones que insertan URLs en el atributo content de las etiquetas meta HTML no se escapan. Esto puede permitir XSS si la etiqueta meta también tiene un atributo http-equiv con el valor 'refresh'. Se ha añadido una nueva configuración GODEBUG, htmlmetacontenturlescape, que se puede usar para deshabilitar el escape de URLs en acciones en el atributo content de las etiquetas meta que siguen a 'url=' al establecer htmlmetacontenturlescape=0.

公表日 2026年3月7日7:16
登録日 2026年4月27日12:15
最終更新日 2026年4月21日23:30
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* 1.25.8
cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*
関連情報、対策とツール
共通脆弱性一覧