PatchSiren cyber security CVE debrief
CVE-2026-10618 gohugoio CVE debrief
CVE-2026-10618 is a stored cross-site scripting (XSS) vulnerability in Hugo, a popular static site generator. The vulnerability arises from the improper handling of attribute values in fenced code blocks, allowing an attacker to inject malicious JavaScript code. This issue affects users who utilize Hugo's default configuration with code fences enabled.
- Vendor
- gohugoio
- Product
- hugo
- CVSS
- MEDIUM 4.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-24
- Original CVE updated
- 2026-09-24
- Advisory published
- 2026-08-24
- Advisory updated
- 2026-09-24
Who should care
Users of Hugo who utilize the default configuration with code fences enabled should assess their exposure and verify their version of Hugo. Developers and administrators responsible for maintaining and updating Hugo installations should prioritize remediation.
Why it matters
CVE-2026-10618 is a stored XSS vulnerability in Hugo that allows an attacker to inject malicious JavaScript code, potentially leading to unauthorized actions or data theft. Users of Hugo should assess their exposure and prioritize remediation.
- Injection of malicious JavaScript code
- Execution of arbitrary code on visitor's browser
- Potential for data theft or unauthorized actions
Technical summary
The vulnerability is caused by the lack of proper escaping of attribute values in the code-fence info string. This allows an attacker to inject malicious JavaScript code, which runs for every visitor who loads the page. The issue is reachable under the default configuration, with code fences enabled and without goldmark's unsafe setting or any custom render hook. Affected users should assess their exposure and prioritize remediation by reviewing and updating Hugo to the latest version, verifying and validating user input for code fences, and implementing additional security measures to prevent XSS attacks.
Defensive priority
Medium
Recommended defensive actions
- Review and update Hugo to the latest version
- Verify and validate user input for code fences
- Implement additional security measures to prevent XSS attacks
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
Evidence notes
The vulnerability is caused by the lack of proper escaping of attribute values in the code-fence info string. This allows an attacker to inject malicious JavaScript code, which runs for every visitor who loads the page. The issue is reachable under the default configuration, with code fences enabled and without goldmark's unsafe setting or any custom render hook.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-10618 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-10618
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-10618 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-10618
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/gohugoio/hugo
-
Source reference
Unverified legacy reference
URL: https://github.com/gohugoio/hugo/blob/v0.165.0/markup/goldmark/codeblocks/render.go
-
Source reference
Unverified legacy reference
URL: https://github.com/gohugoio/hugo/blob/v0.165.0/markup/highlight/highlight.go
-
Source reference
Unverified legacy reference
URL: https://github.com/gohugoio/hugo/blob/v0.165.0/markup/internal/attributes/attributes.go
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/hugo-through-stored-cross-site-scripting-via-unescaped-code-fence-attribute-values
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.