Stored Cross-Site Scripting Vulnerability in Hugo by GoHugoIO
CVE-2026-109597

5.1MEDIUM

Key Information:

Vendor

Gohugoio

Status
Vendor
CVE Published:
12 October 2026

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

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

White0xdi3
.