{"id":"CVE-2024-55601","published":"2024-12-09T21:11:10Z","modified":"2024-12-10T17:13:48Z","title":"Hugo does not escape some attributes in internal templates","vendor":"gohugoio","product":"hugo","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00599,"percentile":0.49602,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-c2xf-9v2r-r2rx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gohugoio/hugo/commit/54398f8d572c689f9785d59e907fd910a23401b0","tags":["x_refsource_MISC"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.139.4","tags":["x_refsource_MISC"]},{"url":"https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":9.92},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"gohugoio","affectedVersions":[{"vendor":"gohugoio","product":"hugo","versions":[">= 0.123.0, < 0.139.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-12-10T16:09:30.192956Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gohugoio/hugo","vulnerableRanges":[">=0.123.0, <0.139.4"],"patched":["0.139.4"],"from":["GHSA-c2xf-9v2r-r2rx","GO-2024-3314"],"provenance":"source"}],"summary":{"text":"Hugo, the static site generator from gohugoio, fails to escape certain HTML attributes in several of its internal render hook templates (including the link, image, table and YouTube shortcode templates), which leads to cross-site scripting. An attacker who can supply Markdown content to a Hugo site that does not fully trust its content files can exploit this with no authentication and no network access requirements, but it requires user interaction, such as a visitor interacting with the generated page, and only applies when the affected internal templates are in use.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:19Z"},"euvd":{"id":"EUVD-2024-3458","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gohugoio-hugo-cve-2024-32875","parents":[{"from":"CVE-2024-32875","to":"CVE-2024-55601","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tpl/tplimpl/embedded/templates/_default/_markup/render-image.html","tpl/tplimpl/embedded/templates/_default/_markup/render-link.html"],"commits":["https://github.com/gohugoio/hugo/commit/15a4b9b33715887001f6eff30721d41c0d4cfdd1","https://github.com/gohugoio/hugo/commit/54398f8d572c689f9785d59e907fd910a23401b0"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.65,"basis":"same product + CWE + description similarity"}]}]}}