CVE-2026-140394: gohugoio hugo · Cross-site Scripting
Affects gohugoio hugoSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 0.170.0 when convenient.
Data as of 1 Dec 2026, 15:00 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.1 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.4 |
- Patch
- Available – fixed in 0.170.0
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 1 Dec 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 1 Dec 2026.
What to do
Upgrade gohugoio hugo to 0.170.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| gohugoiohugo | Affected
| Fixed in
|
Gohugopkg:golang/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 Hugo to version 0.170.0 or later, where this vulnerability is fixed. No other mitigation is indicated or required.
Description
Hugo versions after 0.140.2 and before 0.170.0 contain a stored cross-site scripting (XSS) vulnerability in the highlight shortcode and transform.Highlight template function. This vulnerability arises because the wrapperClass option is written unescaped into the wrapping div's class attribute, allowing content authors to inject malicious script code that executes in visitors' browsers under the site's origin. The issue is fixed in version 0.170.0.