CVE-2026-10618: gohugoio hugo · Cross-site Scripting
Affects gohugoio hugoSource CVE Database V5
Not known to be exploited · CVSS 4.8 Medium.
Data as of 21 Nov 2026, 17:34 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| gohugoiohugo | Affected
| Fixed in– |
GitHubhugopkg:github/hugoOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, users should consider disabling code fences or using custom render hooks that properly escape attribute values. Avoid enabling unsafe goldmark settings that might exacerbate the issue. Monitor official Hugo project channels for updates and apply patches promptly once released.
Description
CVE-2026-10618 is a medium severity cross-site scripting (XSS) vulnerability in the Hugo static site generator. The issue arises because Hugo's default fenced-code-block renderer improperly handles attribute values from code-fence info strings, writing them into HTML without proper escaping. This allows an attacker to inject malicious scripts via crafted attribute values, which execute when a user loads the affected page. The vulnerability affects Hugo versions from 0.93.0 through 0.165.0 under default configuration with code fences enabled. No official patch or fix information is provided in the available data.
References
- github.com/gohugoio/hugo (opens in a new tab)
- github.com/gohugoio/hugo/blob/v0.165.0/markup/internal/attributes/attributes.go (opens in a new tab)
- github.com/gohugoio/hugo/blob/v0.165.0/markup/goldmark/codeblocks/render.go (opens in a new tab)
- github.com/gohugoio/hugo/blob/v0.165.0/markup/highlight/highlight.go (opens in a new tab)
- vulncheck.com/advisories/hugo-through-stored-cross-site-scripting-via-unescaped-code-fence-attribute-values (opens in a new tab)