{"id":"CVE-2026-50133","published":"2026-07-06T19:31:18Z","modified":"2026-07-07T14:44:31Z","title":"Hugo: XSS via text/html content files","vendor":"gohugoio","product":"hugo","tier":"tail","description":{"text":"Hugo is a static site generator. Prior to 0.162.0, Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produced by a content adapter that sets content.mediaType = \"text/html\") had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source could therefore be served stored cross-site scripting. This vulnerability is fixed in 0.162.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00327,"percentile":0.26443,"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-c54g-xjwj-8g82","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gohugoio/hugo/commit/e41a06447daa3071a01f333fdcec0a5153c3c8d1","tags":["x_refsource_MISC"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.162.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":5.29},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"gohugoio","affectedVersions":[{"vendor":"gohugoio","product":"hugo","versions":["< 0.162.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-07T14:44:22.813847Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gohugoio/hugo","vulnerableRanges":["<0.162.0"],"patched":["0.162.0"],"from":["GHSA-c54g-xjwj-8g82","GO-2026-5313"],"provenance":"source"}],"summary":{"text":"Hugo, a static site generator, versions before 0.162.0 emit the body of content files mapped to the text/html media type (such as .html files under /content, or pages from a content adapter setting content.mediaType to \"text/html\") verbatim into rendered pages without sanitisation. An attacker who can get HTML content into a site built from untrusted sources can plant script that runs in visitors' browsers, which requires the victim site to ingest that content and a user to interact with the affected page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:50Z"},"euvd":{"id":"EUVD-2026-41909","exploited":false,"provenance":"source"}}