Back

MEDIUM

Hugo does not properly escape some Markdown links

Published Apr 6, 2026

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

Remediation

Red Hat mitigation

To mitigate this issue, ensure that all markdown content processed by Hugo originates from trusted sources. Alternatively, implement custom render hooks for links and images within Hugo to ensure proper escaping, as this configuration prevents exploitation.

Metrics

References (7)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Apr 6, 2026
Updated Apr 6, 2026
Reserved Apr 1, 2026
CISA Vulnrichment
Updated Apr 6, 2026
NVD
Status Analyzed
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Apr 6, 2026
GHSA-MCV8-8M8X-48PG