Discourse AI HTML Entity Injection Vulnerability Leading to Cross-Site Scripting

Vulnerability

A cross-site scripting vulnerability has been identified in the Discourse AI plugin. This issue arises when conversations with the Discourse AI Bot are shared into posts, as HTML entities from the conversation can leak into the Discourse application. The vulnerability affects Discourse AI versions prior to 7ebbcd2.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user's browser.

Reproduction

To reproduce this vulnerability, share a conversation from the Discourse AI Bot that contains HTML entities into a post. When the post is viewed, the onebox will reference the conversation, and the HTML entities will be rendered, potentially executing any embedded scripts.

Remediation

Users are advised to update to the latest version of Discourse AI. Those unable to update can remove all groups from the 'AI Bot Public Sharing Allowed Groups' site setting.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
1.7
exploitability
6.2
remediation
8.3
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.