Advisory

GHSA-mcv8-8m8x-48pg

Also known as: CVE-2026-35166, GO-2026-5504

Summary

Hugo: Certain markdown links are not properly escaped

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-03 23:38 UTC
Modified
2026-07-07 20:41 UTC

Affected packages and fixes

github.com/gohugoio/hugo

Go · All systems

Affected

  • introduced 0.60.0, fixed 0.159.2 (semver)

Fixed versions

0.159.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences