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
A fix is available — apply it.
- 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.
Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | hugo-main-0.166.0-0.1.hum1 | 2026-09-09 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(3 across 3 ecosystems)
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| hugo | 0.111.3-1 ... 0.165.0-2 (82 versions) | — | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| hugo | 0.131.0-1 ... 0.165.0-2 (45 versions) | — | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| hugo | 0.131.0-1 ... 0.165.0-2 (45 versions) | — | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 23× in last 7d / 87× 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-09-20 23:27 UTCEG score recompute
- 2026-09-20 23:27 UTCVendor advisory
- 2026-09-20 23:27 UTCGHSA enrichment
- 2026-09-20 20:15 UTCEPSS rescore
- 2026-09-19 23:30 UTCEG score recompute
- 2026-09-19 23:30 UTCVendor advisory
- 2026-09-19 23:30 UTCGHSA enrichment
- 2026-09-18 23:48 UTCEG score recompute
- 2026-09-18 23:48 UTCVendor advisory
- 2026-09-18 23:48 UTCGHSA enrichment
- 2026-09-18 19:27 UTCEPSS rescore
- 2026-09-18 00:06 UTCEG score recompute
- 2026-09-18 00:06 UTCVendor advisory
- 2026-09-18 00:06 UTCGHSA enrichment
- 2026-09-16 23:20 UTCEG score recompute
- 2026-09-16 23:20 UTCVendor advisory
- 2026-09-16 23:20 UTCGHSA enrichment
- 2026-09-16 05:14 UTCEPSS rescore
- 2026-09-15 23:37 UTCEG score recompute
- 2026-09-15 23:37 UTCVendor advisory
- 2026-09-15 23:37 UTCGHSA enrichment
- 2026-09-14 23:53 UTCVendor advisory
- 2026-09-14 23:52 UTCGHSA enrichment
- 2026-09-14 00:10 UTCEG score recompute
- 2026-09-14 00:10 UTCVendor advisory
Show 62 moreShow fewer
- 2026-09-14 00:10 UTCGHSA enrichment
- 2026-09-13 16:46 UTCEPSS rescore
- 2026-09-13 00:25 UTCEG score recompute
- 2026-09-13 00:25 UTCVendor advisory
- 2026-09-13 00:25 UTCGHSA enrichment
- 2026-09-12 15:00 UTCEPSS rescore
- 2026-09-12 00:42 UTCEG score recompute
- 2026-09-12 00:42 UTCVendor advisory
- 2026-09-12 00:42 UTCGHSA enrichment
- 2026-09-11 14:52 UTCEPSS rescore
- 2026-09-11 09:36 UTCEPSS rescore
- 2026-09-11 00:59 UTCEG score recompute
- 2026-09-11 00:59 UTCVendor advisory
- 2026-09-11 00:59 UTCGHSA enrichment
- 2026-09-10 09:34 UTCEPSS rescore
- 2026-09-10 01:16 UTCGHSA enrichment
- 2026-09-09 01:34 UTCEG score recompute
- 2026-09-09 01:34 UTCGHSA enrichment
- 2026-09-08 22:00 UTCEPSS rescore
- 2026-09-07 20:12 UTCEG score recompute
- 2026-09-07 20:12 UTCGHSA enrichment
- 2026-09-07 16:01 UTCEPSS rescore
- 2026-09-06 20:30 UTCEG score recompute
- 2026-09-06 20:30 UTCGHSA enrichment
- 2026-09-06 13:47 UTCEPSS rescore
- 2026-09-05 20:47 UTCEG score recompute
- 2026-09-05 20:46 UTCGHSA enrichment
- 2026-09-04 21:04 UTCEG score recompute
- 2026-09-04 21:04 UTCGHSA enrichment
- 2026-09-04 05:06 UTCEPSS rescore
- 2026-09-03 20:32 UTCGHSA enrichment
- 2026-09-02 20:49 UTCEG score recompute
- 2026-09-02 20:49 UTCGHSA enrichment
- 2026-09-02 14:11 UTCEPSS rescore
- 2026-09-01 17:52 UTCEG score recompute
- 2026-09-01 17:51 UTCGHSA enrichment
- 2026-09-01 13:53 UTCEPSS rescore
- 2026-09-01 04:39 UTCEPSS rescore
- 2026-08-31 18:09 UTCEG score recompute
- 2026-08-31 18:09 UTCGHSA enrichment
- 2026-08-30 19:17 UTCEPSS rescore
- 2026-08-30 18:24 UTCEG score recompute
- 2026-08-30 18:24 UTCGHSA enrichment
- 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 vendor + 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
See which npm, PyPI, Go, and Maven packages are affected by 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.