5.4

CVE-2026-140394: Hugo 0.140.2 before 0.170.0 Stored XSS via highlight shortcode wrapperClass

Awaiting analysis
AliasesDEBIAN-CVE-2026-140394UBUNTU-CVE-2026-140394
Published 01-12-2026Last modified 01-12-2026

Vulnerability summary

CVE-2026-140394 is a medium (CVSS 5.4) vulnerability in gohugoio hugo. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 37.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.41%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 01-12-2026
    PublishedVulnerability first disclosed.
  2. 01-12-2026
    Last modifiedVulnerability information updated.

Description

Hugo after 0.140.2 and before 0.170.0 contains a stored cross-site scripting vulnerability in the highlight shortcode and transform.Highlight template function, which write the wrapperClass option unescaped into the wrapping div's class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors' browsers under the site's origin.

CVSS metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

0.41%

Chance of exploitation in the next 30 days

Percentile

38%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

02-12-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • hugoAll versions (No fix recorded)
Gohugoio1 product
  • hugo≥ 0.140.2, < 0.170.0
Ubuntu1 product
  • hugoAll versions (No fix recorded)

3 vendors · 3 products

References

5 links