Skip to main content

CVE-2026-109597: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gohugoio hugo

0
Medium
VulnerabilityCVE-2026-109597cvecve-2026-109597
Published: 10/12/2026 (10/12/2026, 22:21:51 UTC)
Source: CVE Database V5
Vendor/Project: gohugoio
Product: hugo

Description

Hugo versions from 0.60.0 up to but not including 0.167.0 contain a stored cross-site scripting (XSS) vulnerability. This flaw allows Markdown content authors to inject malicious HTML by crafting explicit heading IDs. The vulnerability arises from improper neutralization of input during web page generation, specifically in the unescaped href attribute in .TableOfContents or .Fragments.ToHTML output. This can enable attackers to inject elements with event handlers into rendered pages, potentially leading to client-side code execution.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

gohugoio

hugo

Affected versions
>=0.60.0 <0.167.0
github.com/gohugoio/hugo
pkg:golang/github.com/gohugoio/hugo
Affected versions
>=0.60.0 <0.167.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/12/2026, 23:49:20 UTC

Technical Analysis

CVE-2026-109597 is a stored cross-site scripting vulnerability in the Hugo static site generator affecting versions >=0.60.0 and <0.167.0. The issue occurs because Markdown content authors can supply crafted explicit heading IDs that break out of the unescaped href attribute in .TableOfContents or .Fragments.ToHTML output. This improper input neutralization allows injection of HTML elements with event handlers into the generated pages, leading to potential XSS attacks.

Potential Impact

Successful exploitation allows an attacker with the ability to author Markdown content to inject malicious HTML and JavaScript into generated pages. This can lead to client-side code execution in users' browsers viewing the affected pages. The vulnerability requires author-level privileges and user interaction (UI:P) but does not require elevated privileges or user credentials.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted Markdown content with explicit heading IDs or sanitize inputs before rendering. Monitor the vendor's announcements for updates and patches addressing this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-10-12T20:59:18.909Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6acd63de2cdf04f656e1e416

Added to database: 10/12/2026, 22:49:02 UTC

Last enriched: 10/12/2026, 23:49:20 UTC

Last updated: 10/13/2026, 01:48:17 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses