CVE-2026-50133
Published:June 16, 2026
Updated:June 18, 2026
Commit: "e41a06447d" (https://github.com/gohugoio/hugo/commit/e41a06447d) — Disallow HTML content by default Affected versions: all Hugo versions prior to v0.162.0. Fixed in: v0.162.0. Severity: Low to Medium, depending on threat model. Not an issue if you fully trust every file under "/content" and every content adapter you load. Description. 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 — for example, a CMS-backed editor, a content adapter pulling from an external API, or an automated import pipeline — could therefore be served stored cross-site scripting. Mitigation. v0.162.0 introduces a "security.allowContent" whitelist with "text/html" denied by default. Sites that intentionally author HTML content can opt back in: [security] allowContent = ['.*'] This only affects pages whose source file (or content adapter output) declares an HTML media type; Markdown, AsciiDoc, Org, Pandoc and reStructuredText content is unaffected.
Affected Packages
https://github.com/gohugoio/hugo.git (GITHUB):
Affected version(s) >=v0.7 <v0.162.0Fix Suggestion:
Update to version v0.162.0github.com/gohugoio/hugo (GO):
Affected version(s) >=v0.0.0-20150117071117-769ab9e22476 <v0.162.0Fix Suggestion:
Update to version v0.162.0Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')