Vulnerability Explorer›CVE-2026-58402
VULNERABILITY
CVE-2026-58402
Common Vulnerabilities and Exposures record
MEDIUM
Summary
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.
Risk
- CVSS
- 5.1
- Severity
- MEDIUM
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Timeline
- Published
- Jul 6, 2026 20:16
- Modified
- Oct 25, 2026 20:10
- Last observed
- Oct 25, 2026 17:00
CWE
Affected product identifiers
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*