Hugo: XSS via text/html content files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gohugoio | hugo | before 0.162.0 | 0.162.0 | Patch available | CNA |
| — | github.com/gohugoio/hugo (Go) | before 0.162.0 | 0.162.0 | Patch available | GHSA-c54g-xjwj-8g82 |
- hugo Vendorgohugoio Affected before 0.162.0 Fixed in 0.162.0 Patch available CNA
- github.com/gohugoio/hugo (Go) Vendor— Affected before 0.162.0 Fixed in 0.162.0 Patch available GHSA-c54g-xjwj-8g82
Remediation
- Fix · CNA hugo (gohugoio) Fixed in 0.162.0
- Fix · GHSA-c54g-xjwj-8g82 github.com/gohugoio/hugo (Go) Fixed in 0.162.0 Advisory →
Red Hat 1 advisory
- RHSA-2026:36862 Released 2026-07-08 · Red Hat rating ModerateRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images hugo-main@aarch64, hugo-main@src, hugo-main@x86_64
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Hardened Images | Fixed | RHSA-2026:36862 |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-50133
- 2026-10-03 Alias added: GHSA-c54g-xjwj-8g82
References
More gohugoio Hugo vulnerabilities
- TI-2026-64848 Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots CVSS 4.0HIGH 8.7
- TI-2026-64846 Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks CVSS 4.0HIGH 8.7
- TI-2026-53153 Hugo 0.162.0 to 0.164.x - Node Permission Model Bypass via Default TailwindCSS Child-Process Grant CVSS 4.0CRITICAL 9.3
- TI-2020-16105 Hugo can execute a binary from the current directory on Windows CVSS 3.1HIGH 8.5
- TI-2026-64849 Hugo v0.162.0 before v0.166.0 IP-literal Deny Rule Bypass CVSS 4.0HIGH 8.6
- TI-2026-32270 Hugo: Node tool execution allows file system access outside the project directory CVSS 4.0MEDIUM 6.2
Sources
- CVE-2026-50133 · CVE Program
- CVE-2026-50133 · NVD
- FIRST EPSS
- GHSA-c54g-xjwj-8g82 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-50133 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences