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 = ['.*'].
Hugo before 0.166.0 Cross-Site Scripting via text/org
Problem type
Affected products
gohugoio
< 0.166.0 - AFFECTED
0.166.0 - UNAFFECTED
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
GitHub Security Advisories
GHSA-98xc-jpvp-56pj
Hugo is a static site generator. In versions from v0.56.0 through v0.165.x, content files mapped...
https://github.com/advisories/GHSA-98xc-jpvp-56pjHugo 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 = ['.*'].
https://github.com/gohugoio/hugo/security/advisories/GHSA-pq74-mj4h-cjq2
https://nvd.nist.gov/vuln/detail/CVE-2026-100694
https://www.vulncheck.com/advisories/hugo-before-0.166.0-cross-site-scripting-via-text-org
https://github.com/advisories/GHSA-98xc-jpvp-56pj
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-100694Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-100694",
"assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"assignerShortName": "VulnCheck",
"dateUpdated": "2026-09-26T13:23:52.256Z",
"dateReserved": "2026-09-26T02:37:41.037Z",
"datePublished": "2026-09-26T13:23:52.256Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck",
"dateUpdated": "2026-09-26T13:23:52.256Z"
},
"datePublic": "2026-09-09T00:00:00.000Z",
"title": "Hugo before 0.166.0 Cross-Site Scripting via text/org",
"descriptions": [
{
"lang": "en",
"value": "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 = ['.*']."
}
],
"affected": [
{
"vendor": "gohugoio",
"product": "hugo",
"defaultStatus": "unaffected",
"versions": [
{
"version": "0.56.0",
"status": "affected",
"versionType": "semver",
"lessThan": "0.166.0"
},
{
"version": "0.166.0",
"status": "unaffected",
"versionType": "semver"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
"cweId": "CWE-79",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/gohugoio/hugo/security/advisories/GHSA-pq74-mj4h-cjq2",
"name": "GitHub Security Advisory (GHSA-pq74-mj4h-cjq2)",
"tags": [
"vendor-advisory"
]
},
{
"url": "https://www.vulncheck.com/advisories/hugo-before-0.166.0-cross-site-scripting-via-text-org",
"name": "VulnCheck Advisory: Hugo before 0.166.0 Cross-Site Scripting via text/org",
"tags": [
"third-party-advisory"
]
}
],
"metrics": [
{
"format": "CVSS"
},
{
"format": "CVSS",
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "CHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM"
}
}
],
"credits": [
{
"lang": "en",
"value": "philipdissert",
"type": "finder"
}
]
}
}
}