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

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS: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.

DistributionPackageReleaseVersionStatus
Debianhugosid0.168.0-3fixed
Debianhugoforky0.167.0-7fixed
Debianhugotrixie0.131.0-1vulnerable
Debianhugobookworm0.111.3-1vulnerable
CpehugoNot reportedNot reportedvulnerable
CpehugoNot reported0.163.3fixed
CpehugoNot reported0.163.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianhugosourcesid0.165.0-1not yet assignedNot reported[1141772]
Debianhugosourceforky0.165.0-1not yet assignedNot reported[1141772]
Debianhugosourcetrixie(unfixed)not yet assignedNot reported[1141772]
Debianhugosourcebookworm(unfixed)not yet assignedNot reported[1141772]
CpehugocpeNot reported0.163.3Not reportedNot reportedNot reported
CpehugocpeNot reported0.163.3Not reportedNVD-CVE-2026-58402Not reported

[Debian bug #1141772]

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 · bookworm

      Affected

      nvd · hugo · debian · bookworm; nvd · hugo · debian · 12

    • 0.111.3-1 · arm64 · bookworm

      Affected

      nvd · hugo · debian · bookworm; nvd · hugo · debian · 12

[Debian 13 (Trixie)]

  • [hugo]Affected
    Details (2)
    • 0.131.0-1 · amd64 · trixie

      Affected

      nvd · hugo · debian · 13

    • 0.131.0-1 · arm64 · trixie

      Affected

      nvd · hugo · debian · 13

Observed:

References