CWE
79
Advisory Published
Updated

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

First published: Mon Oct 07 2024(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Discourse<3.3.2
Discourse<3.4.0
Discourse=3.4.0
Discourse=3.4.0-beta1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-47772?

    CVE-2024-47772 is classified as a medium severity vulnerability affecting the Discourse platform.

  • How do I fix CVE-2024-47772?

    To mitigate CVE-2024-47772, enable Content Security Policy (CSP) on your Discourse site.

  • What versions of Discourse are affected by CVE-2024-47772?

    CVE-2024-47772 affects Discourse versions prior to 3.3.2 for stable and 3.4.0 for beta.

  • Can CVE-2024-47772 be exploited on all Discourse installations?

    No, CVE-2024-47772 can only be exploited on Discourse sites that have CSP disabled.

  • What kind of attack is possible with CVE-2024-47772?

    An attacker can execute arbitrary JavaScript in users' browsers through malicious chat messages.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203