CVE-2024-32875gohugoio hugo
Medium 6.1 No auth needed
Follow: this CVE · gohugoio · gohugoio hugo We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 52
- Auth required
- No
- Published
- Apr 23, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for hugo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gohugoio/hugo |
≥ 0.123.0 < 0.125.3 |
0.125.3 |
go get github.com/gohugoio/hugo@v0.125.3 |
| Go | github.com/gohugoio/hugo |
≥ 0.123.0 < 0.125.3 |
0.125.3 |
go get github.com/gohugoio/hugo@v0.125.3 |
Per OSV / GitHub Advisories (GHSA-ppf8-hhpp-f5hj, GO-2024-2747). Check the version in your lockfile before upgrading.
Affected products
- gohugoio · hugo
- gohugo · hugo
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.