Hugo: Certain markdown links are not properly escaped
Package
Affected versions
>= 0.60.0, < 0.159.2
Patched versions
0.159.2
Description
Published to the GitHub Advisory Database
Apr 3, 2026
Reviewed
Apr 3, 2026
Last updated
Apr 3, 2026
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.
References