{"id":"CVE-2024-55601","aliases":["CVE-2024-55601","GHSA-c2xf-9v2r-r2rx","GO-2024-3314"],"related":[],"kind":"vulnerability","state":"published","title":"Hugo does not escape some attributes in internal templates","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nSome HTML attributes in Markdown in the internal templates listed below not escaped. Impacted are Hugo users who do not trust their Markdown content files and are using one or more of these templates.\n\n* `_default/_markup/render-link.html` from `v0.123.0`\n* `_default/_markup/render-image.html` from `v0.123.0`\n* `_default/_markup/render-table.html` from `v0.134.0`\n* `shortcodes/youtube.html` from `v0.125.0`\n\n## Patches\n\nPatched in v0.139.4.\n\n## Workarounds\n\nReplace with user defined templates or disable the internal templates: https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault\n\n## References\n\n* https://github.com/gohugoio/hugo/releases/tag/v0.139.4\n* https://gohugo.io/about/security/","format":"markdown","source":"ghsa"},{"lang":"en","text":"Hugo does not escape some attributes in internal templates in github.com/gohugoio/hugo","format":"markdown","source":"go"},{"lang":"es","text":"Hugo es un generador de sitios estáticos. A partir de la versión 0.123.0 y antes de la versión 0.139.4, algunos atributos HTML en Markdown en las plantillas internas que se enumeran a continuación no se escapaban en los ganchos de renderizado internos. Los afectados son los usuarios de Hugo que no confían en sus archivos de contenido Markdown y están usando una o más de estas plantillas: `_default/_markup/render-link.html` de `v0.123.0`; `_default/_markup/render-image.html` de `v0.123.0`; `_default/_markup/render-table.html` de `v0.134.0`; y/o `shortcodes/youtube.html` de `v0.125.0`. Este problema se solucionó en la versión v0.139.4. Como workaround, se puede reemplazar un componente afectado con plantillas definidas por el usuario o deshabilitar las plantillas internas.","source":"nvd"}],"published":"2024-12-09T20:44:50.000Z","modified":"2026-06-17T08:11:18.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 0.123.0, < 0.139.4","status":"affected"}],"vendor":"gohugoio","product":"hugo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.123.0","status":"affected","fixed":"0.139.4"}],"ecosystem":"Go","package":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.123.0","status":"affected","fixed":"0.139.4"}],"ecosystem":"Go","package":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","source":"go"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-c2xf-9v2r-r2rx","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gohugoio/hugo/commit/54398f8d572c689f9785d59e907fd910a23401b0","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.139.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55601","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/gohugoio/hugo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-12-10T16:09:30.192Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-55601","url":"https://www.cve.org/CVERecord?id=CVE-2024-55601","licence":"CVE Terms of Use","modified":"2024-12-10T17:13:48.519Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c2xf-9v2r-r2rx","url":"https://github.com/advisories/GHSA-c2xf-9v2r-r2rx","licence":"CC-BY-4.0","modified":"2024-12-10T21:57:03.941Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3314","url":"https://pkg.go.dev/vuln/GO-2024-3314","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:06.613Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-55601","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55601","licence":"Public domain","modified":"2026-06-17T08:11:18.193Z"}],"updatedAt":"2026-11-25T22:58:49.859Z","epss":{"score":0.00599,"percentile":0.50027,"date":"2026-12-01T12:00:22.000Z"}}