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 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.


We have discovered 32,573 live websites that are affected by CVE-2026-10618.

Run a Free Instant Scan




Affected Software

Product  Hugo
Category Web Application Frameworks
Vulnerable Domains32,573 live websites (68% of Hugo install base)
Vulnerable Versions
  • from 0.93 through 0.165
Vulnerable Versions Count204 versions ( 62% of all versions)



Details

  • Published - Aug 24, 2026
  • Updated - Aug 26, 2026

Credits

  • Michael Holmquist (finder)

Website Distribution by Country

Number of websites using CVE-2026-10618
United States18,819 websites



Germany4,144 websites
France1,327 websites
GB999 websites
Netherlands615 websites
Canada506 websites
Singapore479 websites
Switzerland432 websites
China352 websites
Japan351 websites

Website Distribution by TLD

Number of websites using CVE-2026-10618
.com12,644 websites
.org2,548 websites
.de2,304 websites
.net2,212 websites
.io867 websites
.fr725 websites
.co.uk564 websites
.nl552 websites
.ca396 websites
.ch363 websites

Vulnerable Versions

Vulnerable versions are highlighted in red

Websites affected by CVE-2026-10618

Top websites that are affected by CVE-2026-10618. Please click on the "Contact us" link to get more information.
DomainCountryRankContacts
***.org United States***
****.net United States*,***
********.com United States*,***
*******.com United States*,***
********.com United States*,***
***********.org United States*,***
*********.io United States*,***
**********.org United States*,***
******.io United States*,***
*******.org United States*,***
See full domain list

FAQ

A total of 32,573 websites have been identified as vulnerable to CVE-2026-10618, based on global website indexing conducted by WebTechSurvey.
The Hugo is affected by the CVE-2026-10618 vulnerability.
Hugo versions up to and including 0.165 are vulnerable to CVE-2026-10618.