REDHAT-BUG-2550088: Medium severity Hugo Hugo vulnerability

Published Oct 12, 2026
·
Updated

Hugo from v0.60.0 before v0.167.0 contains a stored cross-site scripting vulnerability that allows Markdown content authors to inject HTML by supplying crafted explicit heading IDs. Attackers can break out of the unescaped href attribute in .TableOfContents or .Fragments.ToHTML output to inject elements with event handlers into rendered pages.

Affected Software

1 affected component
Hugo Hugo>=0.60.0<0.167.0

Event History

Oct 12, 2026
Data Sourced
via Red Hat·10:55 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which Hugo versions are affected?

Hugo versions from v0.60.0 up to, but not including, v0.167.0 are affected. v0.167.0 is outside the affected range.

2

What access would an attacker need to exploit this issue?

An attacker needs the ability to supply Markdown content containing crafted explicit heading IDs. The issue is relevant where untrusted or insufficiently reviewed users can author site content.

3

Where can the malicious content appear in generated output?

The injection occurs when the crafted heading ID is rendered into the unescaped href attribute used by .TableOfContents or .Fragments.ToHTML output. Sites using either output path should review rendered pages generated from untrusted Markdown.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203