CVE-2024-32875
JSON

6.1medium

Hugo doesn't escape markdown title in internal render hooks

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.54% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-ppf8-hhpp-f5hjGO-2024-2747

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

Product or packageVersionsReported by
gohugoio hugo>= 0.123.0, < 0.125.3CVE List
gohugo hugofrom 0.123.0 before 0.125.3CVE List
github.com/gohugoio/hugo (Go)from 0.123.0 before 0.125.3GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79CWE-80

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Title argument in Markdown for links and images not escaped in internal render hooks. Impacted are Hugo users who have these hooks enabled and do not trust their Markdown content files.

Patches

Patched in v0.125.3.

Workarounds

Replace with user defined templates or disable the internal templates: https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault

References

https://github.com/gohugoio/hugo/releases/tag/v0.125.3

Go Vulnerability Database

Hugo Markdown titles are not escaped in internal render hooks in github.com/gohugoio/hugo

NVD (es)

Hugo es un generador de sitios estáticos. A partir de la versión 0.123.0 y antes de la versión 0.125.3, los argumentos de título en Markdown para enlaces e imágenes no escaparon en ganchos de renderizado internos. Los usuarios de Hugo que se ven afectados son aquellos que tienen estos enlaces habilitados y no confían en sus archivos de contenido de Markdown. El problema se solucionó en v0.125.3. Como workaround, reemplace las plantillas con plantillas definidas por el usuario o desactive las plantillas internas.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-32875 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-ppf8-hhpp-f5hj changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2747 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-32875 changed 2026-06-17Public domain