CVE-2026-109597
published medium CVSS 4.0 · 5.1Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gohugoio | — | hugo0.60.0 to < 0.167.0 (affected · semver) · 0.167.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gohugoio | hugo | 0.60.0 to < 0.167.0 (affected · semver)0.167.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2- GitHub Security Advisory (GHSA-wcpj-vcvm-j4pg) https://github.com/gohugoio/hugo/security/advisories/GHSA-wcpj-vcvm-j4pg
- VulnCheck Advisory: Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs https://www.vulncheck.com/advisories/hugo-0.60.0-before-0.167.0-stored-xss-via-table-of-contents-heading-ids
Provider assertions
2VulnCheck · cna
Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 841ff4bc29b8f780ad03d4af7819e8942d1c2820bb19646f8382b93dc9b2af4b
- Ingested
- 13 Oct 2026, 16:52:47 UTC
- Source record
- Official CVE record