Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-109597 EUVD-2026-98160GHSA-hh58-7hgh-xf3r

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

Published Oct 12, 2026 · Updated Oct 13, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
gohugoio hugo 0.60.0 – < 0.167.0 0.167.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 hugo 0.167.0-1 —
Debian 13 hugo No fix yet —
Debian 12 hugo No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 hugo No fix yet —
Ubuntu 26.04 LTS hugo No fix yet —
Ubuntu 22.04 LTS hugo No fix yet —
Ubuntu 20.04 LTS hugo No fix yet —
Ubuntu 18.04 LTS hugo No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS hugo No fix yet —
Ubuntu Pro 24.04 LTS hugo No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 hugo 0.167.0-0.2.hum1 RHSA-2026:80677

Advisories 1

References