---
id: CVE-2026-35166
aliases:
  - GHSA-mcv8-8m8x-48pg
  - GO-2026-5504
title: 'Hugo: Certain markdown links are not properly escaped'
summary: 'Hugo: Certain markdown links are not properly escaped'
severity: medium
vendor: gohugoio
product: github.com/gohugoio/hugo
ecosystem: go
affected:
  - 'github.com/gohugoio/hugo >= 0.60.0, < 0.159.2'
patched:
  - github.com/gohugoio/hugo 0.159.2
published: '2026-04-03'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-mcv8-8m8x-48pg'
references:
  - url: 'https://github.com/gohugoio/hugo/security/advisories/GHSA-mcv8-8m8x-48pg'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-35166'
  - url: >-
      https://github.com/gohugoio/hugo/commit/479fe6c654937a850b65e74551dc4e857d52898f
  - url: 'https://github.com/gohugoio/hugo'
tags:
  - osv
  - go
epss: 0.00185
epssPercentile: 0.08359
ingestedAt: '2026-07-09T18:56:36.631Z'
---

## Overview

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

## Affected packages

- `github.com/gohugoio/hugo >= 0.60.0, < 0.159.2`

## Remediation

Upgrade to a patched release:

- `github.com/gohugoio/hugo 0.159.2`
