Vulnerability · Published Apr 23, 2024 · Assigned by GitHub_M

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

Medium 6.1

In plain English

A medium-severity cross-site scripting in hugo from gohugoio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.5%top 54.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13hugo0.125.4-1DEBIAN-CVE-2024-32875
Debian:14hugo0.125.4-1DEBIAN-CVE-2024-32875
Gogithub.com/gohugoio/hugo0.125.3GHSA-ppf8-hhpp-f5hj
Gogithub.com/gohugoio/hugo0.125.3GO-2024-2747
Ubuntu:22.04:LTShugono fix listedUBUNTU-CVE-2024-32875
Ubuntu:25.10hugono fix listedUBUNTU-CVE-2024-32875
Ubuntu:26.04:LTShugono fix listedUBUNTU-CVE-2024-32875
Ubuntu:26.10hugono fix listedUBUNTU-CVE-2024-32875

Affected products (as reported)

VendorProductVersions
gohugoio hugo >= 0.123.0, < 0.125.3

Weakness: CWE-80, CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References