Cross-Site Scripting Vulnerability in Hugo Static Site Generator
CVE-2026-100694

5.1MEDIUM

Key Information:

Vendor

Gohugoio

Status
Vendor
CVE Published:
26 September 2026

What is CVE-2026-100694?

Hugo, a popular static site generator, is susceptible to cross-site scripting (XSS) due to improper handling of content files mapped to the text/org media type. This vulnerability allows malicious users to inject scripts into pages that render content from a user-controlled file or leverage a content adapter, potentially executing arbitrary JavaScript in the browsers of users visiting the affected site. Pages impacted by this vulnerability are only those that declare the text/org media type. Hugo version 0.166.0 addresses this issue by implementing a security.allowContent allowlist, which restricts the use of the text/org media type by default, enhancing security for users that do not explicitly trust all content sources.

Affected Version(s)

hugo 0.56.0 < 0.166.0

hugo 0.166.0

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

philipdissert
.