Skip to content
OpenAdvisories
Medium · 6.1 CVE-2024-32875 EUVD-2024-1268GHSA-ppf8-hhpp-f5hjGO-2024-2747

Hugo doesn't escape markdown title in internal render hooks

Published Apr 23, 2024 · Updated Aug 2, 2024 · Assigned by GitHub_M

Description

Hugo is a static site generator. Starting in version 0.123.0 and prior to version 0.125.3, title arguments in Markdown for links and images not escaped in internal render hooks. Hugo users who are impacted are those who have these hooks enabled and do not trust their Markdown content files. The issue is patched in v0.125.3. As a workaround, replace the templates with user defined templates or disable the internal templates.

Affected products

VendorProductAffectedFixed
gohugoio hugo >= 0.123.0, < 0.125.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 hugo 0.125.4-1 —
Debian 13 hugo 0.125.4-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 hugo No fix yet —
Ubuntu 26.04 LTS hugo No fix yet —
Ubuntu 25.10 hugo No fix yet —
Ubuntu 22.04 LTS hugo No fix yet —
Ubuntu 20.04 LTS hugo No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS hugo No fix yet —
Ubuntu 16.04 LTS hugo No fix yet —
Ubuntu Pro 24.04 LTS hugo No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling hugo-extended 0.125.3-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gohugoio/hugo >= 0.123.0, < 0.125.3 0.125.3 GHSA-ppf8-hhpp-f5hj

References