CVE-2026-140394
Hugo 0.140.2 before 0.170.0 Stored XSS via highlight shortcode wrapperClass
- Severity
- medium CVSS 5.1 (v4.0)
- Affects
- hugo · gohugoio
- Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- Published
- 1 December 2026 by VulnCheck
Hugo after 0.140.2 and before 0.170.0 contains a stored cross-site scripting vulnerability in the highlight shortcode and transform.Highlight template function, which write the wrapperClass option unescaped into the wrapping div's class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors' browsers under the site's origin.
Our coverage
We have not written about this one. Know why it matters? Send a tip.