CVE-2024-56328

MEDIUM CVSS 3.1: 6.1 EPSS 0.37%
Updated Sep 26, 2025
Discourse
Parameter Value
CVSS 6.1 (MEDIUM)
Affected Versions before 3.4.0
Fixed In 3.3.3
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Discourse
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 5

Configuration From (including) Up to (excluding)
Discourse Discourse
cpe:2.3:a:discourse:discourse:*:*:*:*:stable:*:*:*
— 3.3.3
Discourse Discourse
cpe:2.3:a:discourse:discourse:*:*:*:*:beta:*:*:*
— 3.4.0
Discourse Discourse
cpe:2.3:a:discourse:discourse:3.4.0:beta1:*:*:beta:*:*:*
— —
Discourse Discourse
cpe:2.3:a:discourse:discourse:3.4.0:beta2:*:*:beta:*:*:*
— —
Discourse Discourse
cpe:2.3:a:discourse:discourse:3.4.0:beta3:*:*:beta:*:*:*
— —