What’s Vulnerable › Vulnerabilities
CVE-2024-32875: Hugo doesn't escape markdown title in internal render hooks
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-04-23 · updated 2026-06-17
- Weakness: CWE-79
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
- gohugoio hugo: from 0.123.0 before 0.125.3 — fixed in 0.125.3
How to fix
Upgrade to a fixed version: gohugoio hugo 0.125.3. Check the vendor advisory for mitigations.
References
- https://github.com/gohugoio/hugo/releases/tag/v0.125.3
- https://github.com/gohugoio/hugo/security/advisories/GHSA-ppf8-hhpp-f5hj
- https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault
- https://github.com/gohugoio/hugo/releases/tag/v0.125.3
- https://github.com/gohugoio/hugo/security/advisories/GHSA-ppf8-hhpp-f5hj
- https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault
Get alerted when CVE-2024-32875 or the next vulnerability affects your stack