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

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-12T22:21:51.941Z
- Modified: 2026-10-16T19:15:07.947Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- gohugoio hugo: from 0.60.0 before 0.167.0 (not affected: 0.167.0)

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-wcpj-vcvm-j4pg> (vendor-advisory)
- <https://www.vulncheck.com/advisories/hugo-0.60.0-before-0.167.0-stored-xss-via-table-of-contents-heading-ids> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-109597](https://www.cve.org/CVERecord?id=CVE-2026-109597), CVE Terms of Use, modified 2026-10-13
- NVD: [CVE-2026-109597](https://nvd.nist.gov/vuln/detail/CVE-2026-109597), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-109597 · Whole record: https://cve.day/CVE-2026-109597.json · Rebuilt by cve.day 2026-11-25T22:59:43.697Z
