CVE-2026-50133: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gohugoio hugo
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.
AI Analysis
Technical Summary
CVE-2026-50133 is a stored cross-site scripting (XSS) vulnerability in the Hugo static site generator. Versions before 0.162.0 emitted the body of content files mapped to text/html media type verbatim into rendered pages without proper neutralization of input. This improper handling of HTML content could allow an attacker to inject malicious scripts if untrusted HTML content is ingested. The vulnerability is addressed in Hugo version 0.162.0.
Potential Impact
Sites using vulnerable Hugo versions (<0.162.0) that ingest HTML content from untrusted sources may serve malicious scripts to users, leading to stored XSS attacks. This can result in script execution in users' browsers, potentially compromising user data or session integrity. The CVSS 4.0 base score is 5.1 (medium severity), indicating a moderate risk with network attack vector, low attack complexity, and no privileges required.
Mitigation Recommendations
Upgrade Hugo to version 0.162.0 or later, where this vulnerability is fixed. No other mitigation is indicated or required by the vendor advisory.
CVE-2026-50133: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gohugoio hugo
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.
CVSS v4.0
Score 5.1medium
Affected software
pkg:golang/github.com/gohugoio/hugoRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-50133 is a stored cross-site scripting (XSS) vulnerability in the Hugo static site generator. Versions before 0.162.0 emitted the body of content files mapped to text/html media type verbatim into rendered pages without proper neutralization of input. This improper handling of HTML content could allow an attacker to inject malicious scripts if untrusted HTML content is ingested. The vulnerability is addressed in Hugo version 0.162.0.
Potential Impact
Sites using vulnerable Hugo versions (<0.162.0) that ingest HTML content from untrusted sources may serve malicious scripts to users, leading to stored XSS attacks. This can result in script execution in users' browsers, potentially compromising user data or session integrity. The CVSS 4.0 base score is 5.1 (medium severity), indicating a moderate risk with network attack vector, low attack complexity, and no privileges required.
Mitigation Recommendations
Upgrade Hugo to version 0.162.0 or later, where this vulnerability is fixed. No other mitigation is indicated or required by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-03T18:49:32.275Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4c076827e9c7971920cba8
Added to database: 07/06/2026, 19:52:08 UTC
Last enriched: 07/14/2026, 09:00:06 UTC
Last updated: 08/20/2026, 22:52:13 UTC
Views: 53
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.