Cross-Site Scripting Vulnerability in Hugo Static Site Generator
CVE-2026-100694
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
