{"id":"CVE-2024-32875","published":"2024-04-23T20:23:42Z","modified":"2024-08-02T02:20:35Z","title":"Hugo doesn't escape markdown title in internal render hooks","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.125.3, title arguments in Markdown for links and images not escaped in internal render hooks. Hugo users who are impacted are those who have these hooks enabled and do not trust their Markdown content files. The issue is patched in v0.125.3. As a workaround, replace the templates with user defined templates or disable the internal templates.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00537,"percentile":0.46157,"provenance":"source"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-ppf8-hhpp-f5hj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.125.3","tags":["x_refsource_MISC"]},{"url":"https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":9.23},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"gohugoio","affectedVersions":[{"vendor":"gohugoio","product":"hugo","versions":[">= 0.123.0, < 0.125.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-29T19:39:12.988615Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gohugoio/hugo","vulnerableRanges":[">=0.123.0, <0.125.3"],"patched":["0.125.3"],"from":["GHSA-ppf8-hhpp-f5hj","GO-2024-2747"],"provenance":"source"}],"summary":{"text":"The flaw is in Hugo, the static site generator, where title arguments in Markdown links and images are not escaped within its internal render hooks, leading to a cross-site scripting weakness. It affects versions from 0.123.0 up to but not including 0.125.3, and only for sites that have these internal render hooks enabled and that process Markdown content not fully trusted by the site owner. An attacker who can supply Markdown content can exploit it over the network without authentication, but a user must interact with the generated page for the injected script to take effect.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:31Z"},"euvd":{"id":"EUVD-2024-1268","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gohugoio-hugo-cve-2024-32875","children":[{"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"}]}]}}