# CVE-2024-55601: Hugo does not escape some attributes in internal templates

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-12-09T20:44:50.000Z
- Modified: 2026-06-17T08:11:18.193Z
- Also known as: GHSA-c2xf-9v2r-r2rx, GO-2024-3314
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- gohugoio hugo: >= 0.123.0, < 0.139.4
- github.com/gohugoio/hugo (Go): from 0.123.0 before 0.139.4

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-c2xf-9v2r-r2rx> (advisory, web)
- <https://github.com/gohugoio/hugo/commit/54398f8d572c689f9785d59e907fd910a23401b0> (fix, web)
- <https://github.com/gohugoio/hugo/releases/tag/v0.139.4> (web)
- <https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-55601> (advisory)
- <https://github.com/gohugoio/hugo> (package)

## Sources

- CVE List: [CVE-2024-55601](https://www.cve.org/CVERecord?id=CVE-2024-55601), CVE Terms of Use, modified 2024-12-10
- GitHub Advisory Database: [GHSA-c2xf-9v2r-r2rx](https://github.com/advisories/GHSA-c2xf-9v2r-r2rx), CC-BY-4.0, modified 2024-12-10
- Go Vulnerability Database: [GO-2024-3314](https://pkg.go.dev/vuln/GO-2024-3314), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-55601](https://nvd.nist.gov/vuln/detail/CVE-2024-55601), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-55601 · Whole record: https://cve.day/CVE-2024-55601.json · Rebuilt by cve.day 2026-11-25T22:58:49.859Z
