All vulnerabilities
CVE-2026-109597GHSA-wcpj-vcvm-j4pg

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

gohugoio hugo
CVSS
5.1Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.17%Chance of exploitation activity in the next 30 days, higher than 5% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in0.167.0Fixed versionCVE List
Published12 Oct 2026Updated 13 Oct 2026CVE List

What fixes it

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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.

Text from CVE List

Affected versions 2

  • hugoaffected: 0.60.0 before 0.167.0CVE List
  • hugounaffected: 0.167.0CVE List

References 2