MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-58402

Hugo default code block renderer XSS via unescaped code-fence language

Not on CISA KEVCVSS 5.1 (v4.0)
  • Overview

Summary

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CVE List Source: CVE Program (cve.org)
  • Red Hat Source: Red Hat Security Data (CC BY 4.0)