Cross-site Scripting (XSS) Affecting hugo package, versions <0:0.170.1-0.1.hum1


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.42% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-HUGO-23303620
  • published2 Dec 2026
  • disclosed1 Dec 2026

Introduced: 1 Dec 2026

NewCVE-2026-140394  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade RHEL:10 hugo to version 0:0.170.1-0.1.hum1 or higher.
This issue was patched in RHSA-2026:104146.

NVD Description

Note: Versions mentioned in the description apply only to the upstream hugo package and not the hugo package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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 Base Scores

version 3.1