Description
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.
Published: 2026-09-24
Score: 5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Trusted HTML injection via chat file upload filenames
Action: Patch
AI Analysis

Impact

Discourse, an open‑source discussion platform, allowed attacker‑controlled filenames for uploaded files in chat messages to be rendered as raw, unescaped HTML within various excerpt components—such as chat channel lists, pinned message bars, email summaries, and preview buffers. This flaw permits trusted‑HTML injection: a malicious user could embed markup into a filename that would alter the visual presentation of excerpts. While the default Content Security Policy of Discourse blocks JavaScript execution and the advisory notes that no confidentiality, integrity, or availability impact has been demonstrated, the vulnerability still undermines the integrity of rendered content and could be leveraged by sophisticated attackers if CSP is weakened.

Affected Systems

The flaw exists in all releases of Discourse preceding 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0. Administrators running any of these problematic versions should consider them vulnerable. The affected product is the Discourse discussion platform as maintained by the Discourse community; no specific ecosystem is singled out beyond the platform itself.

Risk and Exploitability

The CVSS base score is 5.0, giving the feature a low‑to‑moderate severity rating. EPSS data is unavailable, and the vulnerability is not yet listed in CISA’s KEV catalog, suggesting it is not a high‑probability target for exploitation. The attack requires the attacker to be able to upload a file and send chat content, a condition that likely implies some level of account access; the primary attack vector is local or authenticated privilege. If a site disables the default CSP or otherwise relaxes HTML filtering, the risk of content alteration or script execution rises, potentially allowing phishing or defacement attacks. Current mitigations are therefore small‑scale structural changes rather than systemic compromise.

Generated by OpenCVE AI on September 25, 2026 at 06:18 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Discourse 2026.1.8, 2026.6.3, 2026.7.2, or 2026.8.0 which includes the fix.
  • Apply a strict Content Security Policy to block execution of injected HTML when upgrading cannot be applied immediately.
  • Validate and sanitize upload filenames to strip or escape special HTML characters before storing or rendering them.

Generated by OpenCVE AI on September 25, 2026 at 06:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 24 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Discourse
Discourse discourse
Vendors & Products Discourse
Discourse discourse
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Discourse: Chat upload filenames rendered as raw HTML in excerpts
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N'}


Subscriptions

Discourse Discourse
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T17:27:43.580Z

Reserved: 2026-09-14T19:36:48.843Z

Link: CVE-2026-91121

cve-icon Vulnrichment

Updated: 2026-09-24T17:27:38.415Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T18:19:06.583

Modified: 2026-09-24T18:19:06.720

Link: CVE-2026-91121

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T06:30:06Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')