Skip to content
Heist/ feed
Medium

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-109597

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-109597

hugo

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "gohugoio",
    "product": "hugo",
    "versions": [
      {
        "status": "affected",
        "version": "0.60.0",
        "lessThan": "0.167.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "0.167.0",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:golang/github.com/gohugoio/hugo",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-109597

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#20416 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement