| Name | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| hugo (PTS) | bookworm | 0.111.3-1 | fixed |
| trixie | 0.131.0-1 | fixed |
| forky, sid | 0.170.1-2 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| hugo | source | bookworm | (not affected) | | | |
| hugo | source | trixie | (not affected) | | | |
| hugo | source | (unstable) | (unfixed) | | | |
Notes
[trixie] - hugo <not-affected> (Vulnerable code not present, only affects >v0.140.2)
[bookworm] - hugo <not-affected> (Vulnerable code not present, only affects >v0.140.2)
https://github.com/gohugoio/hugo/security/advisories/GHSA-4whp-jx7j-xvrm