CVE-2026-100694: Hugo cross-site scripting via text/org content files

CVE-2026-100694 · Severity: medium · CVSS 6.1 · Published 2026-09-26

Hugo is a static site generator that converts content files into websites. In affected versions, content files marked as Org Mode format can include unescaped HTML that executes in visitors' browsers, allowing attackers to inject malicious scripts. An attacker with the ability to create or modify content files can execute code on the websites of site visitors. The vulnerability only affects sites using Org Mode content and is fixed in version 0.166.0.

Technologies: Gohugoio Hugo. Vendors: Gohugoio.

Quick answers

Is CVE-2026-100694 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-100694 being exploited in the wild.
How severe is CVE-2026-100694?
Medium severity, with a CVSS score of 6.1, published 26 September 2026.
Which products and versions are affected?
Gohugoio Hugo v0.56.0 through v0.165.x.
Is there a fix for CVE-2026-100694?
A patch was published on 2026-09-26: Version 0.166.0 released with security.allowContent allowlist mitigation Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-100694 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-100694?
Check whether you run Gohugoio Hugo at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a stored cross-site scripting (XSS) flaw in Hugo's Org Mode content handler, where Org export blocks and @@html:...@@ snippets are rendered without HTML escaping. An attacker who can supply or influence content files under /content or via content adapters can inject arbitrary HTML and JavaScript that executes in visitor browsers. A fix is available in version 0.166.0, which introduces a security.allowContent allowlist denying text/org by default; sites using Org Mode content can opt back in with explicit configuration.

Affected products

  • gohugoio Hugo v0.56.0 through v0.165.x

Timeline

  • 2026-09-26: disclosed
  • 2026-09-26: patched: Version 0.166.0 released with security.allowContent allowlist mitigation

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.