CVE-2026-100694Gohugo Hugo cross-site scripting (XSS)
CVSS score
5.1
Medium
CVSS 4.0 from vulncheck.com
Exploit probability (EPSS)
0.19%
0.19% chance of exploitation in the next 30 days, higher than 8.42% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
Hugo is a static site generator. In versions from v0.56.0 through v0.165.x, content files mapped to the text/org media type are rendered without escaping raw HTML: Org export blocks and @@html:...@@ snippets pass HTML through unescaped, resulting in cross-site scripting (XSS) in the generated site. An attacker who can supply or influence a content file under /content or the output of a content adapter can inject scripts that execute in the browsers of visitors to the affected pages. Only pages whose source file or content-adapter output declares the text/org media type are affected, and sites that fully trust all content sources are not impacted. Version v0.166.0 fixes the issue by introducing a security.allowContent allowlist that denies text/org by default; sites that intentionally author Org Mode content can opt back in with [security] allowContent = ['.*'].
Source: NVD · CNA: disclosure@vulncheck.com
How to fix it, step by step
Check whether you're affected
Find every system running gohugo Hugo and compare its version with the affected versions.
Update to a fixed version
- Update Hugo to 0.166.0 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Active
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| gohugo Hugo | ≥ 0.56.0, < 0.166.0 |
| gohugoio Hugo | ≥ 0.56.0, < 0.166.0 |
Weakness
- CWE-79 cross-site scripting (XSS)
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-100694 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-100694?
CVE-2026-100694 has a CVSS 4.0 base score of 5.1 (medium).
Which versions are affected?
Gohugo Hugo (≥ 0.56.0, < 0.166.0), Gohugoio Hugo (≥ 0.56.0, < 0.166.0)
Is there a patch for CVE-2026-100694?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/gohugoio/hugo/security/advisories/GHSA-pq74-mj4h-cjq2(Mitigation, Vendor Advisory)
- www.vulncheck.com/advisories/hugo-before-0.166.0-cross-site-scripting-via-text-org(Third Party Advisory)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.