CVE-2026-50133

MEDIUM CVSS 4.0: 5.1 EPSS 0.33%
Updated Oct 25, 2026
Gohugo
Parameter Value
CVSS 5.1 (MEDIUM)
Affected Versions before 0.162.0
Fixed In 0.162.0
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Gohugo
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Gohugo Hugo
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*
— 0.162.0