What’s Vulnerable › Vulnerabilities

CVE-2024-32875: Hugo doesn't escape markdown title in internal render hooks

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

How to fix

Upgrade to a fixed version: gohugoio hugo 0.125.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-32875 or the next vulnerability affects your stack