# CVE-2026-35166: Hugo does not properly escape some Markdown links

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-04-03T23:38:19.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-mcv8-8m8x-48pg, GO-2026-5504
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gohugoio hugo: >= 0.60.0, < 0.159.2
- github.com/gohugoio/hugo (Go): from 0.60.0 before 0.159.2
- gohugo hugo: from 0.60.0 before 0.159.2

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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: CVSS:4.0 Medium `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: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-mcv8-8m8x-48pg> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35166> (advisory)
- <https://github.com/gohugoio/hugo/commit/479fe6c654937a850b65e74551dc4e857d52898f> (fix, web)
- <https://github.com/gohugoio/hugo> (package)

## Sources

- CVE List: [CVE-2026-35166](https://www.cve.org/CVERecord?id=CVE-2026-35166), CVE Terms of Use, modified 2026-04-06
- GitHub Advisory Database: [GHSA-mcv8-8m8x-48pg](https://github.com/advisories/GHSA-mcv8-8m8x-48pg), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5504](https://pkg.go.dev/vuln/GO-2026-5504), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-35166](https://nvd.nist.gov/vuln/detail/CVE-2026-35166), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-35166 · Whole record: https://cve.day/CVE-2026-35166.json · Rebuilt by cve.day 2026-11-25T22:59:18.047Z
