← 취약점·업데이트

보통취약점 권고GoGitHub

Hugo highlight wrapperClass option allows stored cross-site scripting

영향

패키지영향받는 버전수정 버전
go:github.com/gohugoio/hugo>= 0.140.2, < 0.170.00.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…

GitHub Advisory Database에서 읽기

2026. 12. 01. 오전 11:24, GitHub Advisory Database에서 "Hugo highlight wrapperClass option allows stored cross-site scripting"을(를) 게시했습니다 (유형: 취약점 권고). 심각도는 "보통"(medium)입니다. 관련 기술: Go, GitHub.