6.3medium
Discourse improperly sanitized user input leads to XSS
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-DISCOURSE-2024-23834GHSA-rj3g-8q6p-63pc
Description
Discourse is an open-source discussion platform. Improperly sanitized user input could lead to an XSS vulnerability in some situations. This vulnerability only affects Discourse instances which have disabled the default Content Security Policy. The vulnerability is patched in 3.1.5 and 3.2.0.beta5. As a workaround, ensure Content Security Policy is enabled and does not include `unsafe-inline`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| discourse discourse | < 3.1.5, >= 3.2.0.beta1, < 3.2.0.beta5, before 3.1.5, before 3.2.0, 3.2.0 | CVE List, NVD |
| discourse (Bitnami) | before 3.2.0 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Discourse is an open-source discussion platform. Improperly sanitized user input could lead to an XSS vulnerability in some situations. This vulnerability only affects Discourse instances which have disabled the default Content Security Policy. The vulnerability is patched in 3.1.5 and 3.2.0.beta5. As a workaround, ensure Content Security Policy is enabled and does not include `unsafe-inline`.
NVD (es)
Discourse es una plataforma de discusión de código abierto. La entrada del usuario mal sanitizada podría provocar una vulnerabilidad XSS en algunas situaciones. Esta vulnerabilidad solo afecta a las instancias de Discourse que han deshabilitado la Política de seguridad de contenido predeterminada. La vulnerabilidad está parcheada en 3.1.5 y 3.2.0.beta5. Como workaround, asegúrese de que la Política de seguridad de contenido esté habilitada y no incluya "unsafe-inline".
References
| https://github.com/discourse/discourse/security/advisories/GHSA-rj3g-8q6p-63pc | advisory, vendor-advisory | |
| https://github.com/discourse/discourse/commit/568d704a94c528b7c2cb0f3512a7b7b606bc3000 | fix, patch | |
| https://meta.discourse.org/t/3-1-5-security-and-bug-fix-release/293094 | advisory, release-notes, vendor-advisory | |
| https://meta.discourse.org/t/3-2-0-beta5-add-groups-to-dms-mobile-chat-footer-redesign-passkeys-enabled-by-default-and-more/293093 | advisory, release-notes, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-23834 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-23834 changed 2024-10-17 | CVE Terms of Use |
| NVD | CVE-2024-23834 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2024-23834 changed 2026-09-08 | Apache-2.0 |