CVE Explorer
CVE-2026-58402
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"hugo","vendor":"gohugoio","versions":[{"status":"affected","version":">= 0.60.0, < 0.163.3"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:591b912eba97feb32ef32c3d5f49e141cf1c9881da08226964f09b3b0977ce28 · sha256:64162f3291ec4867… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.1,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:591b912eba97feb32ef32c3d5f49e141cf1c9881da08226964f09b3b0977ce28 · sha256:64162f3291ec4867… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:591b912eba97feb32ef32c3d5f49e141cf1c9881da08226964f09b3b0977ce28 · sha256:64162f3291ec4867… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d","tags":["x_refsource_MISC"],"url":"https://github.com/gohugoio/hugo/commit/ce1a7e0bce3713af40496ded3c2c0ceeed49231d"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:591b912eba97feb32ef32c3d5f49e141cf1c9881da08226964f09b3b0977ce28 · sha256:64162f3291ec4867… · /containers/cna/references/2
{"name":"https://github.com/gohugoio/hugo/pull/15051","tags":["x_refsource_MISC"],"url":"https://github.com/gohugoio/hugo/pull/15051"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:591b912eba97feb32ef32c3d5f49e141cf1c9881da08226964f09b3b0977ce28 · sha256:64162f3291ec4867… · /containers/cna/references/1
{"name":"https://github.com/gohugoio/hugo/releases/tag/v0.163.3","tags":["x_refsource_MISC"],"url":"https://github.com/gohugoio/hugo/releases/tag/v0.163.3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:591b912eba97feb32ef32c3d5f49e141cf1c9881da08226964f09b3b0977ce28 · sha256:64162f3291ec4867… · /containers/cna/references/3
{"name":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6","tags":["x_refsource_CONFIRM"],"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q76j-gcg9-vxc6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:591b912eba97feb32ef32c3d5f49e141cf1c9881da08226964f09b3b0977ce28 · sha256:64162f3291ec4867… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.