Skip to content
CVE PROGRAM SOURCE RECORD5.1 Medium

CVE-2026-109597

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

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

gohugoio hugo

Default version status: unaffected

  • 0.60.0 to < 0.167.0affected
  • 0.167.0unaffected
pkg:golang/github.com/gohugoio/hugo

References