Skip to content
STAGE33R

CVE-2026-140394

MED 5.4

Summary

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.

Key facts

  • Vendor: gohugoio
  • CVSS 3.1: 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
  • EPSS (30-day exploitation probability): 0.42%
  • Published: 2026-12-01
  • Last modified: 2026-12-01
  • Weakness: CWE-79

Data aggregated from NVD, CISA KEV, FIRST EPSS and OSV.dev. Updated 2026-12-02.

Get alerts and watchlists for vulnerabilities like this · Browse all vulnerabilities