CVE-2026-35166
MEDIUM 5.3CVSS 4.0Hugo: Certain markdown links are not properly escaped
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.
- Published
- 6 Apr 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-mcv8-8m8x-48pgGO-2026-5504
- Sources
- NVDJSONOSV GHSA-mcv8-8m8x-48pgJSONOSV GO-2026-5504JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.3 | 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 |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gohugo | hugocpe:2.3:a:gohugo:hugo:*:*:*:*:*:linux:*:* |
>= 0.60.0, < 0.159.2 | 0.159.2 |
| NVD | gohugo | hugocpe:2.3:a:gohugo:hugo:*:*:*:*:*:macos:*:* |
>= 0.60.0, < 0.159.2 | 0.159.2 |
| NVD | gohugo | hugocpe:2.3:a:gohugo:hugo:*:*:*:*:*:windows:*:* |
>= 0.60.0, < 0.159.2 | 0.159.2 |
| OSV | Go | github.com/gohugoio/hugo | >= 0.60.0, < 0.159.2 | 0.159.2 |
References
- https://github.com/gohugoio/hugo/security/advisories/GHSA-mcv8-8m8x-48pg · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-35166 · ADVISORY
- https://github.com/gohugoio/hugo/commit/479fe6c654937a850b65e74551dc4e857d52898f · WEB, FIX
- https://github.com/gohugoio/hugo · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 3 Apr 2026)