XSS in Gohugo Hugo
CVE-2026-35166
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 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.
EPSS exploit prediction
EPSS: 0.002 (8.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 8th percentile — 8.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: -0.000
Affected products
- Gohugo Hugo
- Gohugoio Hugo — versions >= 0.60.0, < 0.159.2
Weakness classification (CWE)
References
- github.com/gohugoio/hugo/security/advisories/GHSA-mcv8-8m8x-48pg (Vendor Advisory)
Frequently asked questions
- What is CVE-2026-35166?
- CVE-2026-35166 is a medium-severity vulnerability in Gohugo Hugo, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-04-06.
- How severe is CVE-2026-35166?
- Medium severity. CVSS v3 base score is 5.4 out of 10.