{"id":"JLSEC-2026-796","summary":"XSS via unescaped code-fence language in default code block renderer","details":"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.","modified":"2026-07-25T03:45:04.161677031Z","published":"2026-07-25T03:41:43.685Z","upstream":["CVE-2026-58402","EUVD-2026-41904"],"database_specific":{"license":"CC-BY-4.0","sources":[{"database_specific":{"status":"Analyzed"},"id":"CVE-2026-58402","imported":"2026-07-24T13:46:36.685Z","modified":"2026-07-08T03:06:03.630Z","published":"2026-07-06T20:16:38.040Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-58402","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58402"},{"imported":"2026-07-24T13:46:37.731Z","modified":"2026-07-06T20:54:38Z","published":"2026-07-06T19:19:58Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-41904","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-41904","id":"EUVD-2026-41904"}]},"references":[{"type":"WEB","url":"https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d"},{"type":"WEB","url":"https://github.com/gohugoio/hugo/pull/15051"},{"type":"WEB","url":"https://github.com/gohugoio/hugo/releases/tag/v0.163.3"},{"type":"WEB","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6"}],"affected":[{"package":{"name":"Hugo_jll","ecosystem":"Julia","purl":"pkg:julia/Hugo_jll?uuid=c8420254-0ddf-5525-a2d3-3ad9242def7d"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.163.3+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-796.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"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"}]}