PT-2026-55979
CVE-2026-58402
·
Published
2026-06-19
·
Updated
2026-12-01
Description by
CVSS 3.1
5.4
MediumMetricsAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
Hugo versions 0.60.0 through 0.163.2
Description
The default code-block renderer fails to perform HTML escaping when writing the Markdown code-fence language or info-string into the
code element's class and data-lang attributes. An attacker can provide a fence info-string containing a quote and a script payload to break out of the attribute and inject a live script element into the page.Recommendations
Update to version 0.163.3.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾