Cross-site Scripting (XSS) Affecting hugo-fips package, versions <0.163.3-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.3% (23rd 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-MINIMOSLATEST-HUGOFIPS-17923838
  • published10 Jul 2026
  • disclosed6 Jul 2026

Introduced: 6 Jul 2026

CVE-2026-58402  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Minimos:latest hugo-fips to version 0.163.3-r0 or higher.

NVD Description

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

Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code class="language-…" data-lang="…" wrapper without HTML escaping. A fence info-string containing a quote and a script payload breaks out of the attribute and injects a live script element. This issue is fixed in 0.163.3.

CVSS Base Scores

version 3.1