Improper Encoding or Escaping of Output in Discourse - CVE-2026-91121

 

Improper Encoding or Escaping of Output in Discourse - CVE-2026-91121

Published: October 28, 2026


Vulnerability identifier: #VU158253
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-91121
CWE-ID: CWE-116
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to inject HTML into chat message excerpts displayed to other users.

The vulnerability exists due to improper output escaping in Discourse's chat excerpt renderers when rendering upload filenames. A remote user can upload a file with specially crafted markup in its filename to inject HTML into chat channel lists, chat summary emails, pinned message bars, and reply or thread previews.

JavaScript execution was not demonstrated with Discourse's default security settings.


Affected software

Discourse

How to mitigate CVE-2026-91121

Install security update from vendor's website.

Discourse - addressed in versions 2026.1.8, 2026.6.3, 2026.7.2, 2026.8.0

External References

Related Security Bulletins