CWE
79
EPSS
0.053%
Advisory Published
Updated

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

First published: Tue Jan 30 2024(Updated: )

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

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Discourse<3.1.5
Discourse<3.2.0
Discourse=3.2.0-beta1
Discourse=3.2.0-beta2
Discourse=3.2.0-beta3
Discourse=3.2.0-beta4

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-23834?

    CVE-2024-23834 is classified as a medium severity vulnerability due to its potential for XSS attacks.

  • How do I fix CVE-2024-23834?

    To fix CVE-2024-23834, update your Discourse instance to version 3.1.5 or later, or ensure that your Content Security Policy is enabled.

  • Who is affected by CVE-2024-23834?

    CVE-2024-23834 affects Discourse instances that have disabled the default Content Security Policy.

  • What type of vulnerability is CVE-2024-23834?

    CVE-2024-23834 is an XSS vulnerability caused by improperly sanitized user input.

  • Which Discourse versions are vulnerable to CVE-2024-23834?

    Discourse versions before 3.1.5, including specific beta versions up to 3.2.0, are vulnerable to CVE-2024-23834.

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