Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gohugoio/hugo
  4. ›
  5. CVE-2026-35166

CVE-2026-35166: Hugo: Certain markdown links are not properly escaped

April 3, 2026 (updated April 6, 2026)

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.

References

  • github.com/advisories/GHSA-mcv8-8m8x-48pg
  • github.com/gohugoio/hugo
  • github.com/gohugoio/hugo/commit/479fe6c654937a850b65e74551dc4e857d52898f
  • github.com/gohugoio/hugo/security/advisories/GHSA-mcv8-8m8x-48pg
  • nvd.nist.gov/vuln/detail/CVE-2026-35166

Code Behaviors & Features

Detect and mitigate CVE-2026-35166 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.60.0 before 0.159.2

Fixed versions

  • 0.159.2

Solution

Upgrade to version 0.159.2 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/gohugoio/hugo/CVE-2026-35166.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 10 Apr 2026 12:19:41 +0000.