Vulnerabilities

Security fix · CVE-2026-58402

Hugo is a static site generator.

Published Jul 6, 2026 · catalog updated Oct 26, 2026 · Hugo is a static

Last checked Oct 29, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-58402. EPSS is 0.30%. Act only if a listed version of Hugo is a static is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Hugo is a static).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium5.4
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.30%
Remediation
Advisory link
Affected products
Debian:12 hugo · Debian:13 hugo · Debian:14 hugo

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Debian:12 hugo0.111.3-1, 0.112.7-1, 0.113.0-1
  • Debian:13 hugo0.131.0-1, 0.131.0-2, 0.150.0-1
  • Debian:14 hugo0 → 0.165.0-1

How to fix CVE-2026-58402

  • Upgrade

    CVE-2026-58402 lists a fix boundary at 0.165.0-1. Compare the installed build with that boundary before you change production.

  • Version check

    Fixed in 0.165.0-1 · 6 other ranges on the advisory

  • Advisory

    Open the cve_org record and follow its fix.

  • Official advisories

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-58402. EPSS is 0.30%. Act only if a listed version of Hugo is a static is installed.

Which versions are affected?

Compare what you have installed with 0.111.3-1, 0.112.7-1, 0.113.0-1, 0.131.0-1, 0.131.0-2, 0.150.0-1, 0 → 0.165.0-1. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 0.30%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Technology hubs

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Jul 6, 2026 · Trivy Vulnerability DB

    Detected

    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.

  2. Oct 26, 2026 · Trivy Vulnerability DB

    Fix available

    hugo fixed in 0.165.0-1

  3. Oct 26, 2026 · Trivy Vulnerability DB

    Fix available

    hugo fixed in 0.165.0-1

  4. Oct 26, 2026 · Trivy Vulnerability DB

    Updated

    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.

Sources

  • CVE.orgVulnerability recordCVE-2026-58402

    Official CVE identifier

    cve.org
  • Trivy Vulnerability DBPackage advisoryDEBIAN-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 p

    osv.dev

References

Freshness

Last verified in this catalog Oct 29, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • CVE.orgOct 26, 2026
  • Trivy Vulnerability DBOct 26, 2026