PT-2026-55979 · Hugo · Hugo

·

CVE-2026-58402

·

Published

2026-06-19

·

Updated

2026-07-24

CVSS v3.1

5.4

Medium

VectorAV: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.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-58402
GHSA-Q76J-GCG9-VXC6
GO-2026-5569

Affected Products

Hugo