CVE-2026-35166: GO-2026-5504 - Hugo: Certain markdown links are not properly escaped in github.com/gohugoio/hugo
CVE-2026-35166 · Severity: medium · CVSS 5.4 · Published 2026-04-06
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.
Yes. github.com/gohugoio/hugo (Go): upgrade to 0.159.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-35166?
Check whether you run github.com/gohugoio/hugo (Go) or Gohugo Hugo at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
github.com/gohugoio/hugo (Go): upgrade to 0.159.2 or later