CVE-2026-58402

Name
CVE-2026-58402
Description
Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code class="language-…" data-lang="…" wrapper without HTML escaping. A fence info-string containing a quote and a script payload breaks out of the attribute and injects a live script element. This issue is fixed in 0.163.3.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
security-advisories@github.com https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d
security-advisories@github.com https://github.com/gohugoio/hugo/pull/15051
security-advisories@github.com https://github.com/gohugoio/hugo/releases/tag/v0.163.3
security-advisories@github.com https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:* hugo >= 0.60.0 < 0.163.3

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
hugo edge-community 0.160.1-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.160.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.159.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.159.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.158.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.157.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.155.3-r3 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r3 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r2 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.151.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.151.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.150.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.2-r2 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.2-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.2-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.9-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.9-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.7-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.7-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.2-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.145.0-r2 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.145.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.145.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.144.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.144.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.143.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.143.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.142.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.141.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.141.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.140.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.139.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo 3.24-community 0.160.1-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable