{"id":"ghsa-ghsa-4whp-jx7j-xvrm","seq":11911785,"kind":"advisory","title":"Hugo highlight wrapperClass option allows stored cross-site scripting","url":"https://github.com/advisories/GHSA-4whp-jx7j-xvrm","permalink":"https://vulnpulse.app/items/ghsa-ghsa-4whp-jx7j-xvrm","summary":"影響: go:github.com/gohugoio/hugo >= 0.140.2, < 0.170.0 → 0.170.0\nThe 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…","severity":"medium","cvss":null,"techs":["go","github"],"cves":[],"tags":["GHSA-4whp-jx7j-xvrm","github.com/gohugoio/hugo"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-01T02:24:46.000Z","fetched_at":"2026-12-01T02:40:51.310Z"}