CVE-2026-35166
Received
Received - Intake
Improper Escaping in Hugo Markdown Renderer Allows XSS
Publication date: 2026-04-06
Last updated on: 2026-04-20
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gohugo | hugo | From 0.60.0 (inc) to 0.159.2 (exc) |
| gohugo | hugo | From 0.60.0 (inc) to 0.159.2 (exc) |
| gohugo | hugo | From 0.60.0 (inc) to 0.159.2 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |