What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: gohugoio hugo 0.159.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-35166 or the next vulnerability affects your stack