Hugo: Certain markdown links are not properly escaped
Published 3 Apr 2026 · Updated 7 Jul 2026
Is your project on an affected github.com/gohugoio/hugo?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=0.60.0 <0.159.2
- Fixed in
- 0.159.2
go get github.com/gohugoio/hugo@v0.159.2Details
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.
Is GHSA-mcv8-8m8x-48pg in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/gohugoio/hugo, and gives you the command that fixes it.
More advisories for github.com/gohugoio/hugo
- LowCVE-2026-58403Hugo: Symlink confinement bypass in os.ReadFile in github.com/gohugoio/hugo · 24 Jul 2026
- LowCVE-2026-58402Hugo: XSS via unescaped code-fence language in default code block renderer in github.com/gohugoio/hugo · 24 Jul 2026
- LowCVE-2026-58404Hugo: security.http.urls deny rules bypassed by alternate IPv4 encodings (SSRF) in github.com/gohugoio/hugo · 24 Jul 2026
- LowCVE-2026-44301Hugo's Node tool execution allows file system access outside the project directory in github.com/gohugoio/hugo · 24 Jul 2026
- LowCVE-2026-50133Hugo: XSS via text/html content files in github.com/gohugoio/hugo · 7 Jul 2026
- LowCVE-2026-50135Hugo: Symlink confinement bypass in resources.Get in github.com/gohugoio/hugo · 7 Jul 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.