CVE-2024-32875: Hugo Markdown titles do not escaped in internal render hooks
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.
Published Apr 23, 2024 · Updated Jul 19, 2024
Affected packages
github.com/gohugoio/hugo
- Ecosystem
- Go
- Affected
- >= 0.123.0, < 0.125.3
- Fixed in
- 0.125.3
- Check
go list -m github.com/gohugoio/hugo
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
Credited to ejona86.
References
- https://github.com/gohugoio/hugo/security/advisories/GHSA-ppf8-hhpp-f5hj
- https://github.com/gohugoio/hugo/commit/15a4b9b33715887001f6eff30721d41c0d4cfdd1
- https://github.com/gohugoio/hugo/releases/tag/v0.125.3
- https://nvd.nist.gov/vuln/detail/CVE-2024-32875
- https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault
- https://pkg.go.dev/vuln/GO-2024-2747
- https://github.com/advisories/GHSA-ppf8-hhpp-f5hj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-c3wq-j5vh-68rc
Hugo: Symlink confinement bypass in os.ReadFile
medium6.0Jun 19, 2026GHSA-q76j-gcg9-vxc6
Hugo: XSS via unescaped code-fence language in default code block renderer
medium5.1Jun 19, 2026GHSA-r46f-3rpw-hxrv
Hugo: security.http.urls deny rules bypassed by alternate IPv4 encodings (SSRF)
high7.7Jun 19, 2026CVE-2026-50133
Hugo: XSS via text/html content files
medium5.1Jun 16, 2026CVE-2026-50134
Hugo: security.http.urls allow-list bypass via HTTP redirects
mediumJun 16, 2026CVE-2026-50135
Hugo: Symlink confinement bypass in resources.Get
medium6.9Jun 16, 2026
