CVE-2024-47772
published medium CVSS 3.1 · 6.5Cross-site Scripting (XSS) via chat excerpts when content security policy (CSP) disabled in Discourse
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| discourse | discourse | stable: < 3.3.2 (affected)tests-passed: < 3.4.0.beta2 (affected) | GitHub_M · cna |
| discourse | discourse | 0 to < 3.3.2 (affected · custom)0 to < 3.4.0_beta2 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
2GitHub_M · cna
Cross-site Scripting (XSS) via chat excerpts when content security policy (CSP) disabled in Discourse
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2226b95c97532c00abbd0546fa2b336c32dab2196f2e452ce572005290e2ff87
- Ingested
- 23 Sep 2026, 08:28:35 UTC
- Source record
- Official CVE record