Source: hugo
X-Debbugs-CC: [email protected]
Severity: important
Tags: security

Hi,

The following vulnerability was published for hugo.

CVE-2026-140394[0]:
| 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.

 https://github.com/gohugoio/hugo/security/advisories/GHSA-4whp-jx7j-xvrm


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-140394
    https://www.cve.org/CVERecord?id=CVE-2026-140394

Please adjust the affected versions in the BTS as needed.

Reply via email to