CVE catalog

CVE-2026-50133

Hugo is a static site generator. Prior to 0.162.0, Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produc

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.33% · Oct 25, 2026

Hugo is a static site generator. Prior to 0.162.0, Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produced by a content adapter that sets content.mediaType = "text/html") had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source could therefore be served stored cross-site scripting. This vulnerability is fixed in 0.162.0.

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.162.0fixed
Gogithub.com/gohugoio/hugoNot reported0.162.0fixed
CpehugoNot reported0.162.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianhugosourcesid0.162.1-1not yet assignedNot reportedNot reported
Debianhugosourceforky0.162.1-1not yet assignedNot reportedNot reported
Debianhugosourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianhugosourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpehugocpeNot reported0.162.0Not reportedNot reportedNot reported
Gogithub.com/gohugoio/hugoGoNot reported0.162.0Not reportedNot reportedNot reported
CpehugocpeNot reported0.162.0Not reportedNVD-CVE-2026-50133Not reported

Notes

[trixie] hugo: Minor issue [bookworm] hugo: Minor issue; unsanitized text/html content files, fixed by security.allowContent default-deny in v0.162.0; 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