5.3medium
Hugo does not properly escape some Markdown links
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mcv8-8m8x-48pgGO-2026-5504
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
| Product or package | Versions | Reported by |
|---|---|---|
| gohugoio hugo | >= 0.60.0, < 0.159.2 | CVE List |
| github.com/gohugoio/hugo (Go) | from 0.60.0 before 0.159.2 | GitHub Advisory Database, Go Vulnerability Database |
| gohugo hugo | from 0.60.0 before 0.159.2 | NVD |
All scores
| GitHub_M | 5.3medium 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 |
| GitHub | medium 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 |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
Patched in v0.159.2
Workarounds
Create custom render hooks for links and images in a Hugo theme/project.
Go Vulnerability Database
Hugo: Certain markdown links are not properly escaped in github.com/gohugoio/hugo
NVD (es)
pendiente...
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35166 changed 2026-04-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mcv8-8m8x-48pg changed 2026-07-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5504 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2026-35166 changed 2026-10-24 | Public domain |