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.
CVE-2026-10618
Score 5.4 from GitHub Security Advisory published 2026-08-24. a secondary CVSS source baseline 5.4; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 5.4
- EG Score
- 5.4(high)
- EG Risk
- 24(Track)EG Risk 24/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity54% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 12%
- KEV
- Not listed
Published
August 24, 2026
Last Modified
August 26, 2026
Advisory Details (5)
Auto-updated Aug 24, 2026Hugo 0.93.0 through 0.165.0 Stored Cross-Site Scripting via Unescaped Code-Fence Attribute Values | Advisories | VulnCheck
https://www.vulncheck.com/advisories/hugo-through-stored-cross-site-scripting-via-unescaped-code-fence-attribute-valueshugo/markup/highlight/highlight.go at v0.165.0 · gohugoio/hugo · GitHub
https://github.com/gohugoio/hugo/blob/v0.165.0/markup/highlight/highlight.gohugo/markup/goldmark/codeblocks/render.go at v0.165.0 · gohugoio/hugo · GitHub
https://github.com/gohugoio/hugo/blob/v0.165.0/markup/goldmark/codeblocks/render.gohugo/markup/internal/attributes/attributes.go at v0.165.0 · gohugoio/hugo · GitHub
https://github.com/gohugoio/hugo/blob/v0.165.0/markup/internal/attributes/attributes.goGitHub - gohugoio/hugo: The world’s fastest framework for building websites. · GitHub
https://github.com/gohugoio/hugoVendor Advisories for CVE-2026-10618(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 19× in last 7d / 19× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-30 01:21 UTCEPSS rescore
- 2026-08-29 18:42 UTCEG score recompute
- 2026-08-29 18:41 UTCGHSA enrichment
- 2026-08-28 21:40 UTCEPSS rescore
- 2026-08-28 18:51 UTCGHSA enrichment
- 2026-08-27 19:06 UTCEG score recompute
- 2026-08-27 19:06 UTCGHSA enrichment
- 2026-08-27 14:24 UTCEPSS rescore
- 2026-08-26 19:23 UTCEG score recompute
- 2026-08-26 19:22 UTCGHSA enrichment
- 2026-08-26 18:41 UTCEG score recompute
- 2026-08-26 18:41 UTCGHSA enrichment
- 2026-08-26 10:46 UTCEG score recompute
- 2026-08-26 10:46 UTCGHSA enrichment
- 2026-08-25 13:48 UTCEPSS rescore
- 2026-08-25 11:03 UTCEG score recompute
- 2026-08-25 11:03 UTCGHSA enrichment
- 2026-08-24 10:42 UTCEG score recompute
- 2026-08-24 10:41 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-10618?
When was CVE-2026-10618 disclosed?
Is CVE-2026-10618 actively exploited?
What is the CVSS score of CVE-2026-10618?
How do I remediate CVE-2026-10618?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-10618
Is Your Infrastructure Affected by CVE-2026-10618?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.