CVE-2026-35166
JSON

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 packageVersionsReported by
gohugoio hugo>= 0.60.0, < 0.159.2CVE List
github.com/gohugoio/hugo (Go)from 0.60.0 before 0.159.2GitHub Advisory Database, Go Vulnerability Database
gohugo hugofrom 0.60.0 before 0.159.2NVD

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

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

SourceRecordLicence
CVE ListCVE-2026-35166 changed 2026-04-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-mcv8-8m8x-48pg changed 2026-07-07CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5504 changed 2026-07-07CC-BY-4.0
NVDCVE-2026-35166 changed 2026-10-24Public domain