{"id":"JLSEC-2026-796","aliases":["JLSEC-2026-796"],"related":["CVE-2026-58402","EUVD-2026-41904"],"kind":"vulnerability","state":"published","title":"XSS via unescaped code-fence language in default code block renderer","summary":"Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code `class=\"language-…\" data-lang=\"…\"` wrapper without HTML escaping. A fence info-string containing a quote and a script payload breaks out of the attribute and injects a live script element. This issue is fixed in 0.163.3.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code `class=\"language-…\" data-lang=\"…\"` wrapper without HTML escaping. A fence info-string containing a quote and a script payload breaks out of the attribute and injects a live script element. This issue is fixed in 0.163.3.","format":"markdown","source":"jlsec"}],"published":"2026-07-25T03:41:43.685Z","modified":"2026-07-25T03:45:04.161Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Julia Security Advisories","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.163.3+0"}],"ecosystem":"Julia","package":"Hugo_jll","purl":"pkg:julia/Hugo_jll?uuid=c8420254-0ddf-5525-a2d3-3ad9242def7d","source":"jlsec"}],"references":[{"url":"https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/gohugoio/hugo/pull/15051","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.163.3","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-796","url":"https://osv.dev/vulnerability/JLSEC-2026-796","licence":"CC-BY-4.0","modified":"2026-07-25T03:45:04.161Z"}],"updatedAt":"2026-11-25T22:56:26.240Z"}