Answer in brief
CVE-2026-140394 records a Medium severity (CVSS 5.1) vulnerability in Hugo 0.140.2 before 0.170.0 Stored XSS via highlight shortcode wrapperClass. The current sources do not mark it as known exploited. The current feed maps gohugoio/hugo (generic). Check affected ranges and fixed versions before updating.
Analysis pending evidence review
HOL Guard separates source facts from reviewed analysis. See the methodology.
CVSS is 5.1. The current sources do not mark it as known exploited. Treat this as a source-backed prioritization signal, not a statement about your environment.
Analysis status
Analysis pending evidence review
Factual feed record only; HOL analysis is not approved for indexing. Read the methodology.
The current feed maps gohugoio/hugo (generic). Check affected ranges and fixed versions before updating.
| Package | Affected range | Fixed version |
|---|---|---|
| gohugoio/hugogeneric | >=0.140.2 <0.170.0 | 0.170.0 |
Published upstream
Dec 1, 2026
Evidence: source:cvelist:source_dates:source-dates:recordSource modified
Dec 1, 2026
Evidence: source:cvelist:source_dates:source-dates:recordFirst seen by HOL
Dec 1, 2026
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.
Quoted source text, attributed separately from HOL analysis.