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 package | Versions | Reported by |
|---|---|---|
| gohugoio hugo | >= 0.123.0, < 0.125.3 | CVE List |
| gohugo hugo | from 0.123.0 before 0.125.3 | CVE List |
| github.com/gohugoio/hugo (Go) | from 0.123.0 before 0.125.3 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-32875 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ppf8-hhpp-f5hj changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2747 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-32875 changed 2026-06-17 | Public domain |