Hugo highlight wrapperClass option allows stored cross-site scripting
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| go:github.com/gohugoio/hugo | >= 0.140.2, < 0.170.0 | 0.170.0 |
The wrapperClass option of the built-in highlight shortcode (and the transform.Highlight template function) was written unescaped into the wrapping , allowing a content author to inject arbitrary HTML/JavaScript into the rendered page. Details markup/highlight/highlight.go (writeDivStart) wrote wrapperClass directly between class=" and ", while all other attribute values were HTML-escaped. Because the shortcode's options string is decoded into the highlight config, any content author can set wr…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/01 11:24、GitHub Advisory Databaseが「Hugo highlight wrapperClass option allows stored cross-site scripting」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: Go、GitHub。