
CVE catalog
CVE-2026-58402
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="…" wrap
- Severity
- Medium · CVSS 5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.30% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | hugo | sid | 0.168.0-3 | fixed |
| Debian | hugo | forky | 0.167.0-7 | fixed |
| Debian | hugo | trixie | 0.131.0-1 | vulnerable |
| Debian | hugo | bookworm | 0.111.3-1 | vulnerable |
| Cpe | hugo | Not reported | Not reported | vulnerable |
| Cpe | hugo | Not reported | 0.163.3 | fixed |
| Cpe | hugo | Not reported | 0.163.3 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | hugo | source | sid | 0.165.0-1 | not yet assigned | Not reported | [1141772] |
| Debian | hugo | source | forky | 0.165.0-1 | not yet assigned | Not reported | [1141772] |
| Debian | hugo | source | trixie | (unfixed) | not yet assigned | Not reported | [1141772] |
| Debian | hugo | source | bookworm | (unfixed) | not yet assigned | Not reported | [1141772] |
| Cpe | hugo | cpe | Not reported | 0.163.3 | Not reported | Not reported | Not reported |
| Cpe | hugo | cpe | Not reported | 0.163.3 | Not reported | NVD-CVE-2026-58402 | Not reported |
Notes
[trixie] hugo: Minor issue [bookworm] hugo: Minor issue; code-fence info-string XSS, only exploitable without control of content; mirrors trixie
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [hugo]Affected
Details (2)
0.111.3-1· amd64 · bookwormAffected
nvd · hugo · debian · bookworm; nvd · hugo · debian · 12
0.111.3-1· arm64 · bookwormAffected
nvd · hugo · debian · bookworm; nvd · hugo · debian · 12
[Debian 13 (Trixie)]
- [hugo]Affected
Details (2)
0.131.0-1· amd64 · trixieAffected
nvd · hugo · debian · 13
0.131.0-1· arm64 · trixieAffected
nvd · hugo · debian · 13
Observed:
References
- [https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d]
- [https://github.com/gohugoio/hugo/pull/15051]
- [https://github.com/gohugoio/hugo/releases/tag/v0.163.3]
- [https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-58402]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-58402]
- [https://security-tracker.debian.org/tracker/CVE-2026-58402]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-58402.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]