CWE
79
Advisory Published
Updated

CVE-2024-56328: HTMLi(XSS without CSP) via Onebox urls in Discourse

First published: Tue Feb 04 2025(Updated: )

Discourse is an open source platform for community discussion. An attacker can execute arbitrary JavaScript on users' browsers by posting a maliciously crafted onebox url. This issue only affects sites with CSP disabled. This problem has been patched in the latest version of Discourse. Users are advised to upgrade. Users unable to upgrade should enable CSP, disable inline Oneboxes globally, or allow specific domains for Oneboxing.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Discourse Discourse

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

    CVE-2024-56328 has been classified as a high severity vulnerability due to the potential for arbitrary JavaScript execution on users' browsers.

  • How do I fix CVE-2024-56328?

    To mitigate CVE-2024-56328, ensure that you update to the latest version of Discourse where the issue has been patched.

  • Who is affected by CVE-2024-56328?

    Sites running Discourse with Content Security Policy (CSP) disabled are vulnerable to CVE-2024-56328.

  • What is the impact of CVE-2024-56328?

    An attacker exploiting CVE-2024-56328 can execute malicious JavaScript on the browsers of users visiting an affected Discourse site.

  • Can I still use Discourse if I have CVE-2024-56328?

    It is recommended to enable CSP or update to the latest Discourse version to safely use the platform and avoid CVE-2024-56328.

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