CVE-2026-35166: gohugo hugo Cross-site Scripting
CVSS: 5.4v3.1MediumAnalyzed
AliasesRHSA-2026:7848UBUNTU-CVE-2026-35166DEBIAN-CVE-2026-35166GHSA-mcv8-8m8x-48pgGO-2026-5504
Published 06-04-2026Last modified 06-04-2026
Vulnerability summary
CVE-2026-35166 is a medium (CVSS 5.4) Cross-site Scripting vulnerability in gohugo hugo. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 13.3% of scored vulnerabilities.
CVSS score
5.4/10
010
Medium · v3.1 (NVD)EPSS score
0.23%
0%100%
Low · +0.05 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 06-04-2026PublishedVulnerability first disclosed.
- 06-04-2026Last modifiedVulnerability information updated.
Description
Hugo is a static site generator. From 0.60.0 to before 0.159.2, links and image links in the default markdown to HTML renderer are not properly escaped. Hugo users who trust their Markdown content or have custom render hooks for links and images are not affected. This vulnerability is fixed in 0.159.2.
CVSS metrics
8 scores · 6 sources · 2 versionsMedium 5.3Preferred score · CVE.org (CNA)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NSourcesAll 4 agree
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- OSV · GoEcosystem advisory · calculated5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- NVDNIST5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/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
Medium 5.4Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NSources4 sources · 4.6–5.4
- OSV · Red hatEcosystem advisory · calculated4.6MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
+0.05 pp
From 0.18% on 21-09-2026
21-09-202621-10-2026
EPSS score0.23%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- hugoAll versions (No fix recorded) | < 0.159.2-1
Github.com/gohugoio1 product
- hugo≥ 0.60.0, < 0.159.2
Gohugo1 product
- hugo≥ 0.60.0, < 0.159.2
Gohugoio1 product
- hugo≥ 0.60.0, < 0.159.2
Redhat1 product
- hugo< 0:0.160.1-2.hum1
Ubuntu1 product
- hugoAll versions (No fix recorded)
6 vendors · 6 products
References
13 links- github.com/gohugoio/hugo/security/advisories/GHSA-mcv8-8m8x-48pgX Refsource CONFIRMARTICLEREPORTWEBAdvisoryVendor Advisory
- images.redhat.comARTICLE
Show all 13 references
- github.com/gohugoio/hugoPACKAGE