CVE-2026-35166

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductHugo
PublishedApr 6, 2026
First seenApr 6, 2026

How to fix

Update
  • gohugo hugo0.159.2 or later
  • github.com/gohugoio/hugo0.159.2 or later

Affected products

ProductAffected versionsFixed in
gohugo hugo0.60.0 ≤ v < 0.159.20.159.2
github.com/gohugoio/hugoGo0.60.0 ≤ v < 0.159.20.159.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.