Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-100691
Published:September 26, 2026
Updated:October 09, 2026
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.
Affected Packages
https://github.com/gohugoio/hugo.git (GITHUB):
Affected version(s) >=v0.75.0 <v0.166.0
Fix Suggestion:
Update to version v0.166.0
github.com/gohugoio/hugo (GO):
Affected version(s) >=v0.75.0 <v0.166.0
Fix Suggestion:
Update to version v0.166.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
5.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.17