5.4

CVE-2026-100691: gohugo hugo Cross-site Scripting

CVSS: 5.4v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2026-100691DEBIAN-CVE-2026-100691
Published 26-09-2026Last modified 28-09-2026

Vulnerability summary

CVE-2026-100691 is a medium (CVSS 5.4) Cross-site Scripting vulnerability in gohugo hugo. EPSS estimates a 0.17% chance of exploitation in the next 30 days, higher than 6.2% of scored vulnerabilities.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.17%
0%100%
Low · Change unavailable
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 26-09-2026
    PublishedVulnerability first disclosed.
  2. 28-09-2026
    Last modifiedVulnerability information updated.

Description

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 rendered page, allowing arbitrary JavaScript to execute in the browsers of visitors to the generated site. This affects sites that build and publish Markdown from untrusted contributors; Hugo's security model otherwise considers content trusted input. Fixed in 0.166.0, where the `lineAnchors` value is HTML-escaped before being passed to Chroma.

CVSS metrics

7 scores · 4 sources · 2 versions

EPSS trend

Probability

0.17%

Chance of exploitation in the next 30 days

Percentile

6%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

27-09-202621-10-2026
EPSS score
0.17%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • hugoAll versions (No fix recorded) | < 0.166.0-1
Gohugo1 product
  • hugo≥ 0.75.0, < 0.166.0
Gohugoio1 product
  • hugo≥ 0.75.0, < 0.166.0
Ubuntu1 product
  • hugoAll versions (No fix recorded)

4 vendors · 4 products

References

5 links