CVE-2026-58402
Publication date 6 July 2026
Last updated 9 July 2026
Ubuntu priority
Cvss 3 Severity Score
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| hugo | 26.04 LTS resolute |
Needs evaluation
|
| 24.04 LTS noble |
Needs evaluation
|
|
| 22.04 LTS jammy |
Needs evaluation
|
|
| 20.04 LTS focal |
Needs evaluation
|
|
| 18.04 LTS bionic |
Needs evaluation
|
Severity score breakdown
CVSS version:
Base score
5.1 · Medium
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
Base score
5.4 · Medium
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
References
Other references
- https://www.cve.org/CVERecord?id=CVE-2026-58402
- 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