PatchSiren cyber security CVE debrief
CVE-2026-50133 gohugoio CVE debrief
CVE-2026-50133 is a stored cross-site scripting vulnerability in Hugo, a static site generator. Prior to version 0.162.0, Hugo accepts content files in several markup formats. Files mapped to the text/html media type 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.
- Vendor
- gohugoio
- Product
- hugo
- CVSS
- MEDIUM 5.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-06
- Original CVE updated
- 2026-07-08
- Advisory published
- 2026-07-06
- Advisory updated
- 2026-07-08
Who should care
Users of Hugo, a static site generator, who ingest HTML content from untrusted sources should be aware of this vulnerability. This includes developers, web administrators, and security teams responsible for managing and securing websites generated with Hugo.
Technical summary
The vulnerability exists because Hugo, prior to version 0.162.0, does not properly sanitize HTML content from untrusted sources when it is emitted into the rendered page. This allows an attacker to inject malicious JavaScript code, potentially leading to stored cross-site scripting attacks. The vulnerability has a CVSS score of 5.1 and is classified as MEDIUM severity. A site that ingests HTML content from an untrusted source could therefore be served stored cross-site scripting. Files mapped to the text/html media type had their body emitted verbatim into the rendered page.
Defensive priority
Medium priority should be given to updating Hugo to version 0.162.0 or later, especially for sites that ingest HTML content from untrusted sources. Additionally, site administrators should review their content ingestion processes to ensure proper sanitization of user-supplied content.
Recommended defensive actions
- Update Hugo to version 0.162.0 or later
- Review content ingestion processes to ensure proper sanitization of user-supplied content
- Monitor site activity for suspicious behavior
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record was published on 2026-07-06T20:16:37.043Z and was last modified on 2026-07-07T15:16:47.597Z. The NVD entry is currently Undergoing Analysis. The vulnerability is fixed in Hugo version 0.162.0.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-50133 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-50133
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-50133 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-50133
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/gohugoio/hugo/commit/e41a06447daa3071a01f333fdcec0a5153c3c8d1
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/gohugoio/hugo/releases/tag/v0.162.0
[email protected] - Release Notes
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/gohugoio/hugo/security/advisories/GHSA-c54g-xjwj-8g82
[email protected] - Vendor Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.