Skip to main content

CVE-2026-100694: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gohugoio hugo

0
Medium
Published: 09/26/2026 (09/26/2026, 15:31:21 UTC)
Source: CVE Database V5
Vendor/Project: gohugoio
Product: hugo

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

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

gohugoio

hugo

Affected versions
>=0.56.0 <0.166.0
GitHub Actionsmore threats →ai
gohugoio/hugo
pkg:github/gohugoio/hugo
Affected versions
>=0.56.0 <0.166.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/26/2026, 13:48:23 UTC

Technical Analysis

Hugo versions >=0.56.0 and <0.166.0 improperly neutralize input during web page generation for content files with the text/org media type. Org export blocks and @@html:...@@ snippets pass raw HTML unescaped, resulting in cross-site scripting (XSS) in the generated site. Attackers able to supply or influence content files or content adapter output with this media type can inject malicious scripts that execute in site visitors' browsers. The vulnerability is addressed in version 0.166.0 by default denying text/org content via a security.allowContent allowlist, with an option to opt back in for sites intentionally using Org Mode content.

Potential Impact

An attacker who can supply or influence content files or content adapter output declaring the text/org media type can inject malicious scripts that execute in the browsers of visitors to the affected pages. This can lead to typical XSS impacts such as session hijacking or content manipulation. Sites that fully trust all content sources are not impacted. The vulnerability has a CVSS 4.0 score of 5.1 (medium severity). No known exploits in the wild have been reported.

Mitigation Recommendations

Upgrade to Hugo version 0.166.0 or later, which fixes the issue by introducing a security.allowContent allowlist that denies text/org content by default. Sites that intentionally use Org Mode content can opt back in by configuring [security] allowContent = ['.*']. No other mitigation is required if the upgrade is applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-09-26T02:37:41.037Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ab7c9adf7a7c5410652fd5e

Added to database: 09/26/2026, 13:33:33 UTC

Last enriched: 09/26/2026, 13:48:23 UTC

Last updated: 09/27/2026, 04:31:24 UTC

Views: 14

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses