# CVE-2024-47772: Cross-site Scripting (XSS) via chat excerpts when content security policy (CSP) disabled in Discourse

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- 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.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2024-10-07T20:50:33.324Z
- Modified: 2026-09-08T08:46:12.203Z
- Also known as: BIT-DISCOURSE-2024-47772, GHSA-67mh-xhmf-c56h
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Discourse is an open source platform for community discussion. An attacker can execute arbitrary JavaScript on users' browsers by sending a maliciously crafted chat message and replying to it. This issue only affects sites with CSP disabled. This problem is patched in the latest version of Discourse. All users are advised to upgrade. Users unable to upgrade should ensure CSP is enabled on the forum. Users who do upgrade should also consider enabling a CSP as well as a proactive measure.

(As written by CVE List.)

## Affected

- discourse discourse: stable: < 3.3.2; tests-passed: < 3.4.0.beta2; before 3.3.2; before 3.4.0_beta2; before 3.4.0; 3.4.0
- discourse (Bitnami): before 3.3.2

## Every score

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

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-67mh-xhmf-c56h> (advisory, vendor-advisory)
- <https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP> (advisory, mitigation, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47772> (web)

## Sources

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

---

Page: https://cve.day/CVE-2024-47772 · Whole record: https://cve.day/CVE-2024-47772.json · Rebuilt by cve.day 2026-11-25T22:58:46.149Z
