# CVE-2024-23834: Discourse improperly sanitized user input leads to XSS

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/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.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-01-30T21:31:35.617Z
- Modified: 2026-09-08T08:46:15.159Z
- Also known as: BIT-DISCOURSE-2024-23834, GHSA-rj3g-8q6p-63pc
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- discourse discourse: < 3.1.5; >= 3.2.0.beta1, < 3.2.0.beta5; before 3.1.5; before 3.2.0; 3.2.0
- discourse (Bitnami): before 3.2.0

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/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-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

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

---

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