Skip to content
OpenAdvisories
Medium · 5.3 CVE-2024-55601 EUVD-2024-3458GHSA-c2xf-9v2r-r2rxGO-2024-3314

Hugo does not escape some attributes in internal templates

Published Dec 9, 2024 · Updated Dec 10, 2024 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 hugo 0.150.0-1 —
Debian 13 hugo No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20241213T205935-1.1 openSUSE-SU-2024:14599-1
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
Go github.com/gohugoio/hugo >= 0.123.0, < 0.139.4 0.139.4 GHSA-c2xf-9v2r-r2rx

Advisories 1

References