Vulnerability · Published Jan 14, 2025 · Assigned by GitHub_M
CVE-2024-54142Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse
Critical 9.1
In plain English
A critical-severity cross-site scripting in discourse-ai from discourse. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities).
Official description
Discourse AI is a Discourse plugin which provides a number of AI features. When sharing Discourse AI Bot conversations into posts, if the conversation had HTML entities those could leak into the Discourse application when a user visited a post with a onebox to said conversation. This issue has been addressed in commit `92f122c`. Users are advised to update. Users unable to update may remove all groups from `ai bot public sharing allowed groups` site setting.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| discourse | discourse-ai | < 92f122c |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H