StraitOfVuln
Latest / CVE-2026-140394

CVE-2026-140394

MediumCVSS 5.4 (v3.1)Awaiting Analysis
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-140394
Published / updated
01 Dec 2026, 15:18 UTC · last modified 01 Dec 2026, 16:18 UTC
Severity
MEDIUM
CVSS score
5.4 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N · Attack vector: Network
Affected vendor
gohugoio
Affected products
hugo
Affected versions
hugo: 0.140.2 to before 0.170.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
hugo 0.170.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.41% probability of exploitation in the next 30 days · 38% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
disclosure@vulncheck.com