CVE-2026-100691
Last modified
CVE-2026-100691 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| gohugoio | hugo | >= 0.75.0, < 0.166.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-100691?
How severe is CVE-2026-100691?
How do I fix CVE-2026-100691?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-100686Budibase versions before 3.45.0 fail to validate per-app aut…8.1
- CVE-2026-100687Budibase Server before 3.45.0 fails to redact plaintext data…5.5
- CVE-2026-100688Budibase server before 3.45.0 contains a cross-tenant inform…6.5
- CVE-2026-100689GitPython before 3.1.62 does not validate the `path` field r…5.9
- CVE-2026-10069A vulnerability has been found in Shibby Tomato 1.28. The im…8.7
- CVE-2026-100690Hugo versions from v0.161.0 through v0.165.0 run Node.js too…7.5
- CVE-2026-100692Hugo is a static site generator. In versions after v0.123.0 …7.5
- CVE-2026-100693Hugo versions from v0.162.0 before v0.166.0 contain a case-s…8.4
- CVE-2026-100694Hugo is a static site generator. In versions from v0.56.0 th…6.1
- CVE-2026-100695Adminer before 6.0.2 contains a cross-site scripting vulnera…6.1
- CVE-2026-100696Adminer 4.16.0 through 6.0.1 contain a pre-authentication Se…5.8
- CVE-2026-100697Adminer 6.0.0 through 6.0.1, when the official ClickHouse dr…8.6
Are you affected by CVE-2026-100691?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
