CVE-2026-58402

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*

History

No history.

Information

Published : 2026-07-06 20:16

Updated : 2026-07-08 03:06


NVD link : CVE-2026-58402

Mitre link : CVE-2026-58402

CVE.ORG link : CVE-2026-58402


JSON object : View

Products Affected

gohugo

  • hugo
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')