NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2026-35166: Hugo: Certain markdown links are not properly escaped

mediumCVSS 4.0 5.3GHSA-mcv8-8m8x-48pg

Impact 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. Patches Patched in v0.159.2 Workarounds Create custom render hooks for links and images in a Hugo theme/project.

Published Apr 3, 2026 · Updated Apr 6, 2026

Affected packages

github.com/gohugoio/hugo

Ecosystem
Go
Affected
>= 0.60.0, < 0.159.2
Fixed in
0.159.2
Check
go list -m github.com/gohugoio/hugo

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

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.

Patches

Patched in v0.159.2

Workarounds

Create custom render hooks for links and images in a Hugo theme/project.

Credited to cataliniovita.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries