CVE-2026-58402

MEDIUMCVSS 5.4/10EPSS 0.28%

Last modified

CVE-2026-58402 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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. EPSS estimates a 0.28% chance of exploitation in the next 30 days.

Description

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersions
GohugoHugo>= 0.60.0, < 0.163.3

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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.
How severe is CVE-2026-58402?
CVE-2026-58402 has a CVSS score of 5.4/10 (MEDIUM severity). The EPSS model estimates a 0.28% probability of exploitation in the next 30 days.
How do I fix CVE-2026-58402?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-58402?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST