What’s Vulnerable › Vulnerabilities
CVE-2022-46148: Discourse allows self-XSS through malicious composer message
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-11-29 · updated 2026-06-17
- Weakness: CWE-79
Description
Discourse is an open-source messaging platform. In versions 2.8.10 and prior on the `stable` branch and versions 2.9.0.beta11 and prior on the `beta` and `tests-passed` branches, users composing malicious messages and navigating to drafts page could self-XSS. This vulnerability can lead to a full XSS on sites which have modified or disabled Discourse’s default Content Security Policy. This issue is patched in the latest stable, beta and tests-passed versions of Discourse.
Affected products
- discourse: through 2.8.10; 2.9.0-beta1, 2.9.0-beta10, 2.9.0-beta11, 2.9.0-beta2, 2.9.0-beta3, 2.9.0-beta4 (+4)
References
- https://github.com/discourse/discourse/security/advisories/GHSA-c5h6-6gg5-84fh
- https://github.com/discourse/discourse/security/advisories/GHSA-c5h6-6gg5-84fh
Get alerted when CVE-2022-46148 or the next vulnerability affects your stack