Vulnerability · Published Jul 6, 2026 · Assigned by GitHub_M
CVE-2026-50133Hugo: XSS via text/html content files
Medium 5.1
In plain English
A medium-severity cross-site scripting in hugo from gohugoio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | hugo | no fix listed | DEBIAN-CVE-2026-50133 |
| Debian:13 | hugo | no fix listed | DEBIAN-CVE-2026-50133 |
| Debian:14 | hugo | 0.162.1-1 | DEBIAN-CVE-2026-50133 |
| Go | github.com/gohugoio/hugo | 0.162.0 | GHSA-c54g-xjwj-8g82 |
| Go | github.com/gohugoio/hugo | 0.162.0 | GO-2026-5313 |
| Ubuntu:22.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-50133 |
| Ubuntu:25.10 | hugo | no fix listed | UBUNTU-CVE-2026-50133 |
| Ubuntu:26.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-50133 |
| Ubuntu:26.10 | hugo | no fix listed | UBUNTU-CVE-2026-50133 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
References
- https://github.com/gohugoio/hugo/security/advisories/GHSA-c54g-xjwj-8g82 x_refsource_CONFIRM
- https://github.com/gohugoio/hugo/commit/e41a06447daa3071a01f333fdcec0a5153c3c8d1 x_refsource_MISC
- https://github.com/gohugoio/hugo/releases/tag/v0.162.0 x_refsource_MISC