Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 92%

CVE-2026-50133: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gohugoio hugo

0
Medium
VulnerabilityCVE-2026-50133cvecve-2026-50133cwe-79
Published: 07/06/2026 (07/06/2026, 19:31:18 UTC)
Source: CVE Database V5
Vendor/Project: gohugoio
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

github.com/gohugoio/hugo
pkg:golang/github.com/gohugoio/hugo
Affected versions
<0.162.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/14/2026, 09:00:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses