{"id":"BIT-discourse-2022-46148","summary":"Discourse allows self-XSS through malicious composer message","details":"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.","aliases":["CVE-2022-46148","GHSA-c5h6-6gg5-84fh"],"modified":"2025-11-06T13:25:46.476Z","published":"2024-03-06T11:02:57.788Z","database_specific":{"severity":"Medium","cpes":["cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta10:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta11:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta1:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta2:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta3:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta4:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta5:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta6:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta7:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:2.9.0:beta8:*:*:*:*:*:*"]},"references":[{"type":"WEB","url":"https://github.com/discourse/discourse/security/advisories/GHSA-c5h6-6gg5-84fh"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46148"}],"affected":[{"package":{"name":"discourse","ecosystem":"Bitnami","purl":"pkg:bitnami/discourse"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.8.11"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/discourse/BIT-discourse-2022-46148.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}],"schema_version":"1.7.3"}