CVE-2024-56328 HTMLi(XSS without CSP) via Onebox urls in Discourse
MediumCVSS 6.1
EPSS 0.54%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| discourse | < 3.3.3; < 3.4.0; = 3.4.0-beta1; = 3.4.0-beta2 +4 more | 3.3.3, 3.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| discourse | = stable: <= 3.3.3 | No fix listed |
| discourse | = beta: <= 3.4.0.beta3 | No fix listed |
| discourse | = tests-passed: <= 3.4.0.beta3 | No fix listed |
| discourse | < 3.3.3 | 3.3.3 |
| discourse | < 3.4.0 | 3.4.0 |
| discourse | = 3.4.0-beta1 | No fix listed |
| discourse | = 3.4.0-beta2 | No fix listed |
| discourse | = 3.4.0-beta3 | No fix listed |
References
- https://github.com/discourse/discourse/security/advisories/GHSA-j855-mhxj-x6vg third-party-advisory