All vulnerabilities

Servers and applications

CVE-2026-91121

Chat upload filenames rendered as raw HTML in excerpts

Severity
Medium 5.0
Published
25 Aug 2026
Last changed
14 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
2026.1.8, 2026.6.3, 2026.7.2, 2026.8.0
Exploit chance
0.3% in the next 30 daysHigher than 17% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
Also known as
GHSA-34rh-wjfv-65gq
Sources
Project advisories (GitHub)

Description

In affected versions, attacker-controlled upload filenames used in chat message excerpts were rendered as unescaped HTML. An attacker who can upload a file with specially crafted markup in its filename could inject HTML into chat channel lists, chat summary emails, pinned message bars, reply/thread previews, and other excerpt renderers when other users view chat content.

This was addressed as a trusted-HTML rendering vulnerability, not as confirmed stored XSS. JavaScript execution was not demonstrated with Discourse's default security settings, and no confidentiality, integrity, or availability impact was identified. While the risk is limited, sites that have disabled or modified Discourse's default Content Security Policy (CSP) face increased exposure, and users should update to a patched version if available.

From discourse/discourse's security advisory.

Workarounds

No known workarounds for this issue.

Workarounds as given by discourse/discourse's security advisory.

Affected software

SoftwareAffected versions
DiscourseServers and applications · github:discourse/discourse
  • Every version before 2026.8.0
  • From 2026.1.0-latest before 2026.1.8
  • From 2026.6.0-latest before 2026.6.3
  • From 2026.7.0-latest before 2026.7.2

About Discourse

open source Internet forum software application

From Wikidata, CC0 1.0.
Docker Hub pulls
175,357Docker Hub, 15 Nov 2026
GitHub stars
48,085GitHub, 15 Nov 2026
Forks
9,063GitHub, 15 Nov 2026
License
GNU General Public License, version 2.0Wikidata
Written in
Ruby, JavaScriptWikidata
First released
2013Wikidata
First published on GitHub
12 Jan 2013GitHub

References