Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gohugoio | hugo | >= 0.123.0, < 0.139.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | hugo | 0.150.0-1 | — |
| Debian 13 | hugo | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | hugo | No fix yet | — |
| Ubuntu 26.04 LTS | hugo | No fix yet | — |
| Ubuntu 25.10 | hugo | No fix yet | — |
| Ubuntu 22.04 LTS | hugo | No fix yet | — |
| Ubuntu 20.04 LTS | hugo | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | hugo | No fix yet | — |
| Ubuntu 16.04 LTS | hugo | No fix yet | — |
| Ubuntu Pro 24.04 LTS | hugo | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20241213T205935-1.1 | openSUSE-SU-2024:14599-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | hugo | 0.140.1-r0 | — |
| Alpine v3.23 | hugo | 0.140.1-r0 | — |
| Alpine v3.22 | hugo | 0.140.1-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/gohugoio/hugo | >= 0.123.0, < 0.139.4 | 0.139.4 | GHSA-c2xf-9v2r-r2rx |
Advisories 1
- openSUSE-SU-2024:14599-1 govulncheck-vulndb-0.0.20241213T205935-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026