Live threats

All CVEs / Gohugo

CVE-2026-58402Gohugo Hugo

Medium 5.1

Priority
31
CVSS 4.0
5.1
EPSS
—
Auth required
Yes
Published
Jul 6, 2026
Updated
Oct 25, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hugo.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/gohugoio/hugo ≥ 0.60.0 < 0.163.3 0.163.3 go get github.com/gohugoio/hugo@v0.163.3
Go github.com/gohugoio/hugo ≥ 0.60.0 < 0.163.3 0.163.3 go get github.com/gohugoio/hugo@v0.163.3

Per OSV / GitHub Advisories (GHSA-q76j-gcg9-vxc6, GO-2026-5569). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gohugohugo≥ 0.60.0 < 0.163.3

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.