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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58402.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.60.0"
},
{
"fixed": "0.163.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "ce1a7e0bce3713af40496ded3c2c0ceeed49231d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v0.163.3",
"range": [
{
"fixed": "4d22555aebf458d5d150500c9ac4bee5b24cf0d3"
}
],
"source": "REFERENCES_TAG"
}
]
}