Stored Cross-Site Scripting Vulnerability in Hugo by GoHugoIO
CVE-2026-109597
5.1MEDIUM
What is CVE-2026-109597?
Hugo versions from v0.60.0 to v0.166.0 are susceptible to a stored cross-site scripting vulnerability. This vulnerability enables Markdown content authors to craft explicit heading IDs that can inject malicious HTML into the output. By exploiting the unescaped href attributes in .TableOfContents and .Fragments.ToHTML, attackers can manipulate the rendered pages and insert harmful event handlers. It poses a significant risk to site integrity and user safety, necessitating immediate attention from users of the affected versions.
Affected Version(s)
hugo 0.60.0 < 0.167.0
hugo 0.167.0
