Find a vulnerability
Search criteria
ⓘ
Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.
Related vulnerabilities
JLSEC-2026-794 (CVE-2026-50133)
Vulnerability from osv_julia – Published: 2026-07-25 03:41 – Updated: 2026-07-25 03:41 – Source websiteCommit: e41a06447d — Disallow HTML content by default
Affected versions: all Hugo versions prior to v0.162.0.
Fixed in: v0.162.0.
Severity: Low to Medium, depending on threat model. Not an issue if you fully trust every file under /content and every content adapter you load.
Description. Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produced by a content adapter that sets content.mediaType = "text/html") had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source — for example, a CMS-backed editor, a content adapter pulling from an external API, or an automated import pipeline — could therefore be served stored cross-site scripting.
Mitigation. v0.162.0 introduces a security.allowContent whitelist with text/html denied by default. Sites that intentionally author HTML content can opt back in:
[security]
allowContent = ['.*']
This only affects pages whose source file (or content adapter output) declares an HTML media type; Markdown, AsciiDoc, Org, Pandoc and reStructuredText content is unaffected.
{
"affected": [
{
"package": {
"ecosystem": "Julia",
"name": "Hugo_jll",
"purl": "pkg:julia/Hugo_jll?uuid=c8420254-0ddf-5525-a2d3-3ad9242def7d"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.163.3+0"
}
],
"type": "SEMVER"
}
]
}
],
"credits": [
{
"contact": [
"https://github.com/jmooring"
],
"name": "jmooring",
"type": "ANALYST"
}
],
"database_specific": {
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-50133",
"id": "CVE-2026-50133",
"imported": "2026-07-24T13:46:36.652Z",
"modified": "2026-07-08T03:08:33.383Z",
"published": "2026-07-06T20:16:37.043Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-50133"
},
{
"html_url": "https://github.com/advisories/GHSA-c54g-xjwj-8g82",
"id": "GHSA-c54g-xjwj-8g82",
"imported": "2026-07-24T13:46:39.963Z",
"modified": "2026-06-16T19:22:16Z",
"published": "2026-06-16T19:22:14Z",
"url": "https://api.github.com/advisories/GHSA-c54g-xjwj-8g82"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-41909",
"id": "EUVD-2026-41909",
"imported": "2026-07-24T13:46:37.731Z",
"modified": "2026-07-07T14:44:31Z",
"published": "2026-07-06T19:31:18Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-41909"
}
]
},
"details": "**Commit:** [e41a06447d](https://github.com/gohugoio/hugo/commit/e41a06447d) \u2014 _Disallow HTML content by default_\n**Affected versions:** all Hugo versions prior to v0.162.0.\n**Fixed in:** v0.162.0.\n**Severity:** Low to Medium, depending on threat model. Not an issue if you fully trust every file under `/content` and every content adapter you load.\n\n**Description.** Hugo accepts content files in several markup formats. Files mapped to the `text/html` media type (typically `.html` files under `/content`, or pages produced by a content adapter that sets `content.mediaType = \"text/html\"`) had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source \u2014 for example, a CMS-backed editor, a content adapter pulling from an external API, or an automated import pipeline \u2014 could therefore be served stored cross-site scripting.\n\n**Mitigation.** v0.162.0 introduces a `security.allowContent` whitelist with `text/html` denied by default. Sites that intentionally author HTML content can opt back in:\n\n```toml\n[security]\nallowContent = [\u0027.*\u0027]\n```\n\nThis only affects pages whose source file (or content adapter output) declares an HTML media type; Markdown, AsciiDoc, Org, Pandoc and reStructuredText content is unaffected.",
"id": "JLSEC-2026-794",
"modified": "2026-07-25T03:41:43.685Z",
"published": "2026-07-25T03:41:43.685Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/advisories/GHSA-c54g-xjwj-8g82"
},
{
"type": "WEB",
"url": "https://github.com/gohugoio/hugo/commit/e41a06447daa3071a01f333fdcec0a5153c3c8d1"
},
{
"type": "WEB",
"url": "https://github.com/gohugoio/hugo/releases/tag/v0.162.0"
},
{
"type": "WEB",
"url": "https://github.com/gohugoio/hugo/security/advisories/GHSA-c54g-xjwj-8g82"
}
],
"schema_version": "1.8.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"source": "NVD",
"type": "CVSS_V3"
},
{
"score": "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",
"source": "CNA",
"type": "CVSS_V4"
}
],
"summary": "Hugo: XSS via text/html content files",
"upstream": [
"CVE-2026-50133",
"GHSA-c54g-xjwj-8g82",
"EUVD-2026-41909"
]
}