CVE-2024-23834 Discourse improperly sanitized user input leads to XSS
MediumCVSS 6.1
EPSS 0.62%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| discourse | < 3.1.5; < 3.2.0; = 3.2.0-beta1; = 3.2.0-beta2 +4 more | 3.1.5, 3.2.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| discourse | = < 3.1.5 | No fix listed |
| discourse | = >= 3.2.0.beta1, < 3.2.0.beta5 | No fix listed |
| discourse | < 3.1.5 | 3.1.5 |
| discourse | < 3.2.0 | 3.2.0 |
| discourse | = 3.2.0-beta1 | No fix listed |
| discourse | = 3.2.0-beta2 | No fix listed |
| discourse | = 3.2.0-beta3 | No fix listed |
| discourse | = 3.2.0-beta4 | No fix listed |
References
- https://github.com/discourse/discourse/security/advisories/GHSA-rj3g-8q6p-63pc vendor-advisory
- https://github.com/discourse/discourse/commit/568d704a94c528b7c2cb0f3512a7b7b606bc3000 patch
- https://meta.discourse.org/t/3-1-5-security-and-bug-fix-release/293094 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 release-notes vendor-advisory