Medium severity5.4NVD Advisory· Published Dec 1, 2026· Updated Dec 1, 2026
CVE-2026-140394
CVE-2026-140394
Description
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.
Affected products
1Patches
Vulnerability mechanics
References
2News mentions
0No linked articles in our index yet.