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.