CVE-2026-58402: Hugo is a static site generator
CVE-2026-58402 is a medium-severity flaw (CVSS 5.4) affecting hugo. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.4 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.3% (top 77%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2026-07-06 |
| Last modified | 2026-10-25 |
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-58402?
hugo: upgrade to 0.163.3. Exact commands for each OS are on this page.
Is CVE-2026-58402 being exploited?
CVE-2026-58402 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-58402 affect?
CVE-2026-58402 affects hugo. Severity is medium (CVSS 5.4). 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-
How urgent is CVE-2026-58402?
Priority 25/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-50134 MEDIUM 5.8 UPGRADE Hugo is a static site generator
- CVE-2026-58403 MEDIUM 6.5 UPGRADE Hugo is a static site generator
- CVE-2026-58404 MEDIUM 6.8 UPGRADE Hugo is a static site generator
- CVE-2026-50133 MEDIUM 6.1 UPGRADE Hugo is a static site generator
- CVE-2026-50135 MEDIUM 5.5 UPGRADE Hugo is a static site generator