Live threats

All CVEs / Gohugo

CVE-2026-35166Gohugo Hugo

Medium 5.3 No auth needed

Priority
47
CVSS 4.0
5.3
EPSS
—
Auth required
No
Published
Apr 6, 2026
Updated
Oct 24, 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:N/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 to before 0.159.2, links and image links in the default markdown to HTML renderer are not properly escaped. Hugo users who trust their Markdown content or have custom render hooks for links and images are not affected. This vulnerability is fixed in 0.159.2.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hugo.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

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

Per OSV / GitHub Advisories (GHSA-mcv8-8m8x-48pg, GO-2026-5504). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gohugohugo≥ 0.60.0 < 0.159.2
gohugohugo≥ 0.60.0 < 0.159.2
gohugohugo≥ 0.60.0 < 0.159.2

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.