Discourse: Chat upload filenames rendered as raw HTML in excerpts
Discourse is an open-source discussion platform. Prior to 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0, attacker-controlled upload filenames used in chat message excerpts were rendered as unescaped HTML. A user able to upload a file and send chat content could place markup in a filename that was then interpreted by chat channel lists, chat summary emails, pinned message bars, reply previews, thread previews, and other excerpt renderers. The issue allowed trusted-HTML injection that altered rendered excerpt content, but JavaScript execution was not demonstrated with default Content Security Policy settings. The advisory states that no confidentiality, integrity, or availability impact was identified, while its structured scoring metadata separately assigns low integrity impact. Sites that disable or relax the default CSP have increased exposure. This issue is fixed in versions 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-91121
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 11:01 UTC · Revision 1
Source evidence
Discourse: Chat upload filenames rendered as raw HTML in excerpts
core-osv · Original sourcePublished 24 Sept 2026, 17:05 UTC
Discourse is an open-source discussion platform. Prior to 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0, attacker-controlled upload filenames used in chat message excerpts were rendered as unescaped HTML. A user able to upload a file and send chat content could place markup in a filename that was then interpreted by chat channel lists, chat summary emails, pinned message bars, reply previews, thread previews, and other excerpt renderers. The issue allowed trusted-HTML injection that altered rendered excerpt content, but JavaScript execution was not demonstrated with default Content Security Policy settings. The advisory states that no confidentiality, integrity, or availability impact was identified, while its structured scoring metadata separately assigns low integrity impact. Sites that disable or relax the default CSP have increased exposure. This issue is fixed in versions 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0.
osv:CVE-2026-91121
Complete source record
{
"id": "1cde9988668b4d48bcfcb8b6853a36c6bd0c5e37475b8b86bd43cad4974ddff6",
"url": "https://osv.dev/vulnerability/CVE-2026-91121",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Discourse: Chat upload filenames rendered as raw HTML in excerpts",
"summary": "Discourse is an open-source discussion platform. Prior to 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0, attacker-controlled upload filenames used in chat message excerpts were rendered as unescaped HTML. A user able to upload a file and send chat content could place markup in a filename that was then interpreted by chat channel lists, chat summary emails, pinned message bars, reply previews, thread previews, and other excerpt renderers. The issue allowed trusted-HTML injection that altered rendered excerpt content, but JavaScript execution was not demonstrated with default Content Security Policy settings. The advisory states that no confidentiality, integrity, or availability impact was identified, while its structured scoring metadata separately assigns low integrity impact. Sites that disable or relax the default CSP have increased exposure. This issue is fixed in versions 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0.",
"evidence": "osv:CVE-2026-91121",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-91121",
"aliases": [
"BIT-discourse-2026-91121",
"CVE-2026-91121",
"GHSA-34rh-wjfv-65gq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/discourse/discourse",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "fb9247e04a826ab8e4d91168b3c4c839ec40bccc"
},
{
"introduced": "ded677e00beb0e9bae6e70b69582aecfb72b5477"
},
{
"fixed": "3ab62a8397926ed934b667a5db06284c45b4c774"
},
{
"introduced": "06d03da34c4ed09ea59f917f045ba250d2b6320d"
},
{
"fixed": "777cb880553b517bc9ae502e935a160332e48b78"
},
{
"introduced": "322d3c0ac6a8f133b3f82875e9dbbe310f638c1b"
},
{
"fixed": "e808d0853e013abf90e648e53ebd606c49ccb19f"
},
{
"fixed": "24cd7cc4c868f20e6037d67d801d60c3e289b278"
},
{
"fixed": "6e7a181909c34a059d2b0a6291335a363205b787"
},
{
"fixed": "9d6f5e64a1cb68e8208520e4209b361e14f7394b"
},
{
"fixed": "af197941f7613a3845cba21d217641c77c8ef836"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2026.8.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "2026.7.0-latest"
},
{
"fixed": "2026.7.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "2026.6.0-latest"
},
{
"fixed": "2026.6.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "2026.1.0-latest"
},
{
"fixed": "2026.1.8"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "24cd7cc4c868f20e6037d67d801d60c3e289b278"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "6e7a181909c34a059d2b0a6291335a363205b787"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "9d6f5e64a1cb68e8208520e4209b361e14f7394b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "af197941f7613a3845cba21d217641c77c8ef836"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2026.1.7",
"v2026.7.1",
"v2026.6.2",
"v2026.1.6",
"v2026.7.0",
"v2026.6.1",
"_gh-attach-assets",
"v2026.1.5",
"v2026.6.0",
"v2026.7.0-latest",
"v2026.6.0-latest",
"v2026.1.4",
"v2026.1.3",
"v2026.1.2",
"v2026.1.1",
"v2026.1.0",
"stable",
"esr",
"v2026.1.0-latest"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-91121.json"
}
}
],
"modified": "2026-10-28T02:30:28.285946885Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/91xxx/CVE-2026-91121.json",
"https://github.com/discourse/discourse/security/advisories/GHSA-34rh-wjfv-65gq",
"https://nvd.nist.gov/vuln/detail/CVE-2026-91121",
"https://github.com/discourse/discourse/commit/24cd7cc4c868f20e6037d67d801d60c3e289b278",
"https://github.com/discourse/discourse/commit/6e7a181909c34a059d2b0a6291335a363205b787",
"https://github.com/discourse/discourse/commit/9d6f5e64a1cb68e8208520e4209b361e14f7394b",
"https://github.com/discourse/discourse/commit/af197941f7613a3845cba21d217641c77c8ef836",
"https://github.com/discourse/discourse/pull/42882"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/91xxx/CVE-2026-91121.json"
}
},
"related_cves": [
{
"value": "CVE-2026-91121",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494819,
"published_at": "2026-09-24T17:05:20.53+00:00"
}