{"id":"CVE-2026-58402","revision":"44b9f2b3009047e4825b3a61f1381d01","records":[{"revision":"44b9f2b3009047e4825b3a61f1381d01","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-58402","aliases":[],"title":"Hugo default code block renderer XSS via unescaped code-fence language","description":"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.","state":0,"publishedAt":"2026-07-06T19:19:58.754+00:00","modifiedAt":"2026-07-06T20:54:38.775+00:00","affected":[{"ecosystem":"Vendor product","name":"hugo","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gohugoio\",\n                    \"product\": \"hugo\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 0.60.0, < 0.163.3\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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","score":5.1,"severity":"MEDIUM"}],"references":["https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6","https://github.com/gohugoio/hugo/pull/15051","https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d","https://github.com/gohugoio/hugo/releases/tag/v0.163.3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-58402","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-58402","identifiers":["CVE-2026-58402"]},"retained":false,"historicalAffected":[]}],"coverage":[]}