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

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

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

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

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

NVD Vulnerability Information
CVE-2026-27142
Summary

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.

Summary

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.

Publication Date March 7, 2026, 7:16 a.m.
Registration Date April 27, 2026, 12:15 p.m.
Last Update April 21, 2026, 11:30 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* 1.25.8
cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List