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.
References
| Link | Resource |
|---|---|
| https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d | Patch |
| https://github.com/gohugoio/hugo/pull/15051 | Issue Tracking |
| https://github.com/gohugoio/hugo/releases/tag/v0.163.3 | Release Notes |
| https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6 | Vendor Advisory |
Configurations
History
08 Jul 2026, 03:06
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Gohugo hugo
Gohugo |
|
| CPE | cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:* | |
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 5.4 |
| References | () https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d - Patch | |
| References | () https://github.com/gohugoio/hugo/pull/15051 - Issue Tracking | |
| References | () https://github.com/gohugoio/hugo/releases/tag/v0.163.3 - Release Notes | |
| References | () https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6 - Vendor Advisory |
06 Jul 2026, 20:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-07-06 20:16
Updated : 2026-07-08 03:06
NVD link : CVE-2026-58402
Mitre link : CVE-2026-58402
CVE.ORG link : CVE-2026-58402
JSON object : View
Products Affected
gohugo
- hugo
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
