CVE-2026-35166
MEDIUM5.4EPSS 0.01%Hugo: Certain markdown links are not properly escaped
Published: 4/3/2026Modified: 4/28/2026
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.
Affected packages (2)
- Debian/hugofrom 0
- Go/github.com/gohugoio/hugo>= 0.60.0, < 0.159.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-35166
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-35166
- PATCHhttps://github.com/gohugoio/hugo
- WEBhttps://github.com/gohugoio/hugo/commit/479fe6c654937a850b65e74551dc4e857d52898f
- WEBhttps://github.com/gohugoio/hugo/security/advisories/GHSA-mcv8-8m8x-48pg