CVE-2026-109597

published 12 Oct 2026 · updated 13 Oct 2026

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

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.167.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gohugoio>=0.60.0 <0.167.00.167.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-109597 severity on Zeptric[![CVE-2026-109597](https://zeptric.io/badge/cve/CVE-2026-109597.svg)](https://zeptric.io/cve/CVE-2026-109597)