CVE-2026-91121

Discourse: Chat upload filenames rendered as raw HTML in excerpts

Published Sep 24, 2026 CVSS 3.1 · 5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
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'}

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 24, 2026, 5:27 PM
Reserved
Sep 14, 2026, 7:36 PM
Status
Deferred
Published
Sep 24, 2026, 6:19 PM
Modified
Sep 24, 2026, 6:19 PM