CVE-2026-140394

NameCVE-2026-140394
DescriptionHugo 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.
SourceCVE (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 PackageReleaseVersionStatus
hugo (PTS)bookworm0.111.3-1fixed
trixie0.131.0-1fixed
forky, sid0.170.1-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
hugosourcebookworm(not affected)
hugosourcetrixie(not affected)
hugosource(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

Search for package or bug name: Reporting problems