CVE-2026-10618
CVE-2026-10618 — Hugo 0.93.0 through 0.165.0 Stored Cross-Site Scripting via Unescaped Code-Fence Attribute Values
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…
Published Updated Sources: cvelistV5, VulnCheck
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.4
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.4 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-79
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /internal/attributes/attributes.go.
References
5 on the record
- github.com/gohugoio/hugo
product
- github.com/gohugoio/hugo/blob/v0.165.0/markup/internal/attributes/attributes.go
technical-description
- github.com/gohugoio/hugo/blob/v0.165.0/markup/goldmark/codeblocks/render.go
technical-description
- github.com/gohugoio/hugo/blob/v0.165.0/markup/highlight/highlight.go
technical-description
- www.vulncheck.com/advisories/hugo-through-stored-cross-site-scripting-via-unescaped-code-fence-attribute-values
third-party-advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2019-3929 Crestron Multiple Products Command Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-42009 RoundCube Webmail Cross-Site Scripting VulnerabilityCVSS 9.3 · CISA KEV
- CVE-2023-34192 Synacor Zimbra Collaboration Suite (ZCS) Cross-Site Scripting (XSS) VulnerabilityCVSS 9.0 · CISA KEV
- CVE-2019-18426 WhatsApp Cross-Site Scripting VulnerabilityCVSS 8.2 · CISA KEV
- CVE-2024-43573 Microsoft Windows MSHTML Platform Spoofing VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2024-44309 Apple Multiple Products Cross-Site Scripting (XSS) VulnerabilityCVSS 6.3 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.