CVE-2024-32875
MEDIUM6.1EPSS 0.21%Hugo Markdown titles are not escaped in internal render hooks in github.com/gohugoio/hugo
Published: 4/23/2024Modified: 4/28/2026
Also known as:DEBIAN-CVE-2024-32875
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 (3)
- Debian/hugofrom 0, < 0.125.4-1
- Go/github.com/gohugoio/hugo>= 0.123.0, < 0.125.3
- Go/github.com/gohugoio/hugo>= 0.123.0, < 0.125.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-32875
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-32875
- PATCHhttps://github.com/gohugoio/hugo
- WEBhttps://github.com/gohugoio/hugo/commit/15a4b9b33715887001f6eff30721d41c0d4cfdd1
- WEBhttps://github.com/gohugoio/hugo/releases/tag/v0.125.3
- WEBhttps://github.com/gohugoio/hugo/security/advisories/GHSA-ppf8-hhpp-f5hj
- WEBhttps://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault
- WEBhttps://pkg.go.dev/vuln/GO-2024-2747