Skip to content

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

MediumCVSS 6.1 EPSS 0.53%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
discourse < 3.3.2; < 3.4.0; < 3.4.0_beta2; = 3.4.0-beta1 +2 more 3.3.2, 3.4.0, 3.4.0_beta2 Fixed

Affected products

ProductAffected versionsFixed in
discourse = stable: < 3.3.2 No fix listed
discourse = tests-passed: < 3.4.0.beta2 No fix listed
discourse < 3.3.2 3.3.2
discourse < 3.4.0_beta2 3.4.0_beta2
discourse < 3.4.0 3.4.0
discourse = 3.4.0-beta1 No fix listed

References