CVE-2026-10618: Hugo's default fenced-code-block renderer writes attribute values taken from the code-fence info string into t
CVE-2026-10618 is a medium-severity flaw (CVSS 5.4) affecting hugo. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.4 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.3% (top 77%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2026-08-24 |
| Last modified | 2026-10-12 |
Last updated 2026-10-12 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-10618?
hugo: upgrade to 0.165.0. Exact commands for each OS are on this page.
Is CVE-2026-10618 being exploited?
CVE-2026-10618 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-10618 affect?
CVE-2026-10618 affects hugo. Severity is medium (CVSS 5.4). 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
How urgent is CVE-2026-10618?
Priority 25/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-44301 HIGH 8.1 UPGRADE Hugo is a static site generator
- CVE-2026-50134 MEDIUM 5.8 UPGRADE Hugo is a static site generator
- CVE-2026-58403 MEDIUM 6.5 UPGRADE Hugo is a static site generator
- CVE-2026-58404 MEDIUM 6.8 UPGRADE Hugo is a static site generator
- CVE-2026-50133 MEDIUM 6.1 UPGRADE Hugo is a static site generator