{"id":"CVE-2026-58402","aliases":["GHSA-q76j-gcg9-vxc6","GO-2026-5569"],"url":"https://o3.security/vulnerability/CVE-2026-58402","summary":"Hugo default code block renderer XSS via unescaped code-fence language","details":"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.","published":"2026-07-06T19:19:58.754Z","modified":"2026-08-12T03:51:14.494703737Z","cvss":null,"epss":{"score":0.003,"percentile":0.22576,"asOf":"2026-09-12"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/gohugoio/hugo","fixedVersion":"0.163.3"}],"fix":{"url":"https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d","label":"gohugoio/hugo@ce1a7e0"},"references":[{"type":"WEB","url":"https://github.com/gohugoio/hugo/releases/tag/v0.163.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58402.json"},{"type":"ADVISORY","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58402"},{"type":"FIX","url":"https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d"},{"type":"FIX","url":"https://github.com/gohugoio/hugo/pull/15051"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:14.494703737Z"}}