Skip to main content
VulnerabilityPublished

CVE-2026-140394: gohugoio hugo · Cross-site Scripting

Affects gohugoio hugoSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.05.1
CNA (VulnCheck)CVSS 3.15.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
gohugoiohugoAffected
  • >=0.140.2 <0.170.0
Fixed in
  • 0.170.0
Gohugopkg:golang/hugoOther threatsAffected
  • >=0.140.2 <0.170.0
Fixed in
  • 0.170.0

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.

References

Community reviews

Loading reviews…