CVE-2026-35166Gohugo Hugo
Medium 5.3 No auth needed
Follow: this CVE · Gohugo · Gohugo Hugo We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 4.0
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Apr 6, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS: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
What happens
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.
What to do
- Apply the vendor's security update for Hugo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gohugoio/hugo |
≥ 0.60.0 < 0.159.2 |
0.159.2 |
go get github.com/gohugoio/hugo@v0.159.2 |
| Go | github.com/gohugoio/hugo |
≥ 0.60.0 < 0.159.2 |
0.159.2 |
go get github.com/gohugoio/hugo@v0.159.2 |
Per OSV / GitHub Advisories (GHSA-mcv8-8m8x-48pg, GO-2026-5504). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gohugo | hugo | ≥ 0.60.0 < 0.159.2 |
| gohugo | hugo | ≥ 0.60.0 < 0.159.2 |
| gohugo | hugo | ≥ 0.60.0 < 0.159.2 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7848 · Apr 20, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory