CVE-2026-109597

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductHugo
PublishedOct 12, 2026
First seenOct 12, 2026

How to fix

Update
  • gohugoio hugo0.167.0 or later

Affected products

ProductAffected versionsFixed in
gohugoio hugo0.60.0 ≤ v < 0.167.00.167.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.