# CVE-2022-46148: Discourse allows self-XSS through malicious composer message

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2022-11-29T00:00:00.000Z
- Modified: 2026-09-10T16:01:30.660Z
- Also known as: BIT-DISCOURSE-2022-46148, GHSA-c5h6-6gg5-84fh
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- discourse discourse: <= 2.8.10; >= 2.9.0.beta1, <= 2.9.0.beta11; up to 2.8.10; 2.9.0
- discourse (Bitnami): before 2.8.11

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-c5h6-6gg5-84fh> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-46148> (web)

## Sources

- CVE List: [CVE-2022-46148](https://www.cve.org/CVERecord?id=CVE-2022-46148), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-46148](https://nvd.nist.gov/vuln/detail/CVE-2022-46148), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2022-46148](https://osv.dev/vulnerability/BIT-DISCOURSE-2022-46148), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2022-46148 · Whole record: https://cve.day/CVE-2022-46148.json · Rebuilt by cve.day 2026-11-25T22:58:17.115Z
