Hugo does not escape some attributes in internal templates
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
Hugo is a static site generator. Starting in version 0.123.0 and prior to version 0.139.4, some HTML attributes in Markdown in the internal templates listed below not escaped in internal render hooks. Those whoa re impacted are Hugo users who do not trust their Markdown content files and are using one or more of these templates: `_default/_markup/render-link.html` from `v0.123.0`; `_default/_markup/render-image.html` from `v0.123.0`; `_default/_markup/render-table.html` from `v0.134.0`; and/or `shortcodes/youtube.html` from `v0.125.0`. This issue is patched in v0.139.4. As a workaround, one may replace an affected component with user defined templates or disable the internal templates.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gohugoio | hugo | 0.123.0 to before 0.139.4 | 0.139.4 | Patch available | CNA |
| — | github.com/gohugoio/hugo (Go) | 0.123.0 to before 0.139.4 | 0.139.4 | Patch available | GHSA-c2xf-9v2r-r2rx |
- hugo Vendorgohugoio Affected 0.123.0 to before 0.139.4 Fixed in 0.139.4 Patch available CNA
- github.com/gohugoio/hugo (Go) Vendor— Affected 0.123.0 to before 0.139.4 Fixed in 0.139.4 Patch available GHSA-c2xf-9v2r-r2rx
Remediation
- Fix · CNA hugo (gohugoio) Fixed in 0.139.4
- Fix · GHSA-c2xf-9v2r-r2rx github.com/gohugoio/hugo (Go) Fixed in 0.139.4 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat OpenShift GitOps
Timeline
- 2026-10-02 Threatist record created from CVE-2024-55601
- 2026-10-03 Alias added: GHSA-c2xf-9v2r-r2rx
References
Other 5
- https://github.com/gohugoio/hugo/security/advisories/GHSA-c2xf-9v2r-r2rx
- https://github.com/gohugoio/hugo/commit/54398f8d572c689f9785d59e907fd910a23401b0
- https://github.com/gohugoio/hugo/releases/tag/v0.139.4
- https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault
- https://github.com/gohugoio/hugo
More gohugoio vulnerabilities
- TI-2026-60433 Hugo before v0.165.0 Insufficient Permission Restriction via TailwindCSS CVSS 4.0CRITICAL 9.3
- TI-2026-60432 Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get CVSS 4.0CRITICAL 9.3
- TI-2026-64848 Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots CVSS 4.0HIGH 8.7
- TI-2026-64846 Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks CVSS 4.0HIGH 8.7
- TI-2026-53153 Hugo 0.162.0 to 0.164.x - Node Permission Model Bypass via Default TailwindCSS Child-Process Grant CVSS 4.0CRITICAL 9.3
- TI-2020-16105 Hugo can execute a binary from the current directory on Windows CVSS 3.1HIGH 8.5
Sources
- CVE-2024-55601 · CVE Program
- CVE-2024-55601 · NVD
- FIRST EPSS
- GHSA-c2xf-9v2r-r2rx · GitHub Advisory Database · CC BY 4.0
- CVE-2024-55601 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences