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—
Product
Hugo
PublishedApr 6, 2026
First seenApr 6, 2026
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- gohugo hugo0.159.2 or later
- github.com/gohugoio/hugo0.159.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gohugo hugo | 0.60.0 ≤ v < 0.159.2 | 0.159.2 |
| github.com/gohugoio/hugoGo | 0.60.0 ≤ v < 0.159.2 | 0.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.