CVE-2024-56328 Details
Description
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.
A vulnerability in Discourse's Onebox feature allows for the execution of arbitrary JavaScript in users' browsers. This issue arises when a maliciously crafted Onebox URL is posted, and it only affects Discourse sites with Content Security Policy (CSP) disabled. The vulnerability is present in Discourse versions stable through 3.3.3, beta through 3.4.0.beta3, and tests-passed through 3.4.0.beta3.
Users are advised to upgrade to Discourse versions stable 3.3.4, beta 3.4.0.beta4, or tests-passed 3.4.0.beta4. For those unable to upgrade, it is recommended to enable CSP, disable inline Oneboxes globally, or allow specific domains for Oneboxing.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/discourse/discourse/security/advisories/GHSA-j855-mhxj-x6vg | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| discourse discourse | < 3.3.3 < 3.4.0 3.4.0 beta1 3.4.0 beta2 3.4.0 beta3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 26, 2025 | Reanalysis | [email protected] |
| Aug 26, 2025 | Initial Analysis | [email protected] |
| Feb 4, 2025 | New CVE Received | [email protected] |