Vulnerability · Published Apr 6, 2026 · Assigned by GitHub_M

CVE-2026-35166Hugo does not properly escape some Markdown links

Medium 5.3

In plain English

A medium-severity cross-site scripting in hugo from gohugoio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.2%top 91.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12hugono fix listedDEBIAN-CVE-2026-35166
Debian:13hugono fix listedDEBIAN-CVE-2026-35166
Debian:14hugo0.159.2-1DEBIAN-CVE-2026-35166
Gogithub.com/gohugoio/hugo0.159.2GHSA-mcv8-8m8x-48pg
Gogithub.com/gohugoio/hugo0.159.2GO-2026-5504
Ubuntu:22.04:LTShugono fix listedUBUNTU-CVE-2026-35166
Ubuntu:25.10hugono fix listedUBUNTU-CVE-2026-35166
Ubuntu:26.04:LTShugono fix listedUBUNTU-CVE-2026-35166
Ubuntu:26.10hugono fix listedUBUNTU-CVE-2026-35166

Affected products (as reported)

VendorProductVersions
gohugoio hugo >= 0.60.0, < 0.159.2

Weakness: CWE-79 · 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

References