Skip to content
OpenAdvisories
Medium · 6.5 CVE-2024-47772 EUVD-2024-42682

Cross-site Scripting (XSS) via chat excerpts when content security policy (CSP) disabled in Discourse

Published Oct 7, 2024 · Updated Oct 8, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
discourse discourse stable: < 3.3.2, tests-passed: < 3.4.0.beta2 —

References