CVE-2026-58402: gohugoio hugo · Cross-site Scripting
Affects gohugoio hugoSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 0.163.3 when convenient.
Data as of 18 Nov 2026, 20:25 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.
- Patch
- Available – fixed in 0.163.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Jul 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 18 Nov 2026.
What to do
Upgrade gohugoio hugo to 0.163.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| gohugoiohugo | Affected
| Fixed in
|
Gogithub.com/gohugoio/hugopkg:golang/github.com/gohugoio/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
Upgrade to Hugo version 0.163.3 or later, where this vulnerability is fixed by properly escaping the code-fence language/info-string before inserting it into HTML attributes. No other mitigation or temporary workaround is indicated in the available data.
Description
Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code class="language-…" data-lang="…" wrapper without HTML escaping. A fence info-string containing a quote and a script payload breaks out of the attribute and injects a live script element. This issue is fixed in 0.163.3.
References
- github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6 (opens in a new tab)
- github.com/gohugoio/hugo/pull/15051 (opens in a new tab)
- github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d (opens in a new tab)
- github.com/gohugoio/hugo/releases/tag/v0.163.3 (opens in a new tab)