Description
Discourse is an open-source discussion platform. Prior to 2026.7.0, the post action component failed to escape user-controlled display names before interpolating them into an HTML string passed to trustHTML. A user who could choose a crafted display name could persist markup in post action descriptions. Viewing the affected user activity streams could execute attacker-controlled script in another user's browser. This issue is fixed in version 2026.7.0.
Severity (CVSS)
| Base score | 5.4 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-79 — CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| discourse | discourse | < 2026.7.0 |
References
- https://github.com/discourse/discourse/security/advisories/GHSA-x6mf-p7cg-69rw (x_refsource_CONFIRM)
- https://github.com/discourse/discourse/commit/dd786594ddd088657a7e6f9fefba5bd889965fe4 (x_refsource_MISC)
- https://github.com/discourse/discourse/releases/tag/v2026.7.0 (x_refsource_MISC)
Generated from the official CVE List on 22 Sep 2026 07:03 UTC.