CVE-2026-100691: Hugo versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlight
CVE-2026-100691 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 versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlighter does not escape the `lineAnchors` option before passing it to Chroma, which writes the value verbatim into the `id` and `href` attributes of the generated line-number markup. A crafted `lineAnchors` value supplied as a Markdown code fence attribute (or passed to the `highlight` template function) results in unescaped HTML in the render
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.2% (top 93%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2026-09-26 |
| Last modified | 2026-09-29 |
Last updated 2026-09-29 · 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-100691?
hugo: upgrade to 0.166.0. Exact commands for each OS are on this page.
Is CVE-2026-100691 being exploited?
CVE-2026-100691 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-100691 affect?
CVE-2026-100691 affects hugo. Severity is medium (CVSS 5.4). Hugo versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlighter does not escape the `lineAnchors` option before passing it to Chroma, which writes the value verbatim into the `id` and `href`
How urgent is CVE-2026-100691?
Priority 21/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