CVE-2024-23834: Discourse

Medium severity, CVSS 6.1. EPSS: 0.5% chance of exploitation in the next 30 days.

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 products

  • Discourse Discourse: before 3.1.5 (fixed in 3.1.5); before 3.2.0 (fixed in 3.2.0); version 3.2.0 only

Published 2024-01-30. Last modified 2026-06-17.