CVE-2026-109597 PUBLISHED

Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs

Assigner: VulnCheck
Reserved: 12.10.2026 Published: 12.10.2026 Updated: 12.10.2026

Hugo from v0.60.0 before v0.167.0 contains a stored cross-site scripting vulnerability that allows Markdown content authors to inject HTML by supplying crafted explicit heading IDs. Attackers can break out of the unescaped href attribute in .TableOfContents or .Fragments.ToHTML output to inject elements with event handlers into rendered pages.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
CVSS Score: 5.1

Product Status

Vendor gohugoio
Product hugo
Versions Default: unaffected
  • affected from 0.60.0 to 0.167.0 (excl.)
  • Version 0.167.0 is unaffected

Credits

  • White0xdi3 finder

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE