Discourse
cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*
- >= 2026.1.0-latest, < 2026.1.3
- >= 2026.2.0-latest, < 2026.2.2
- >= 2026.3.0-latest, < 2026.3.0
A cross-site scripting (XSS) vulnerability has been identified in Discourse, an open-source discussion platform. This issue affects versions 2026.1.0-latest prior to 2026.1.3, 2026.2.0-latest prior to 2026.2.2, and 2026.3.0-latest prior to 2026.3.0. The vulnerability arises because the API does not properly sanitize category descriptions when they are updated, allowing malicious users to inject scripts that could be executed in the context of the user.
Exploitation of this vulnerability allows for cross-site scripting attacks, where an attacker can inject malicious scripts that are executed in the context of the user.
To reproduce this vulnerability, update a category description via the Discourse API without proper sanitization. Include a script tag in the description to demonstrate the XSS injection. After the update, the injected script will be executed, confirming the presence of the vulnerability.
Users can update to Discourse versions 2026.1.3, 2026.2.2, or 2026.3.0, where this vulnerability has been patched. Additionally, ensure that the Content Security Policy is enabled and not modified in a way that could increase vulnerability to XSS attacks.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.