Bug 2497467 (CVE-2026-58402) - CVE-2026-58402 github.com/gohugoio/hugo: Hugo: Cross-site Scripting via unescaped code-fence language in default code block renderer
Summary: CVE-2026-58402 github.com/gohugoio/hugo: Hugo: Cross-site Scripting via unesc...
Keywords:
Status: NEW
Alias: CVE-2026-58402
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-06 20:02 UTC by OSIDB Bzimport
Modified: 2026-07-28 06:52 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-06 20:02:55 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.