CVE-2026-58402: Hugo is a static site generator
Affects hugoSource GCVE Database
Not known to be exploited · CVSS 5.1 Medium · fixed in 0.163.3 : update hugo when convenient.
Data as of 24 Nov 2026, 21:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 22% 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 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10hugopkg:deb/ubuntu/hugo?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10hugopkg:deb/ubuntu/hugo?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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
- ubuntu.com/security/CVE-2026-58402 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-58402 (opens in a new tab)
- 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)