CVE-2024-54142CWE-79

Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse

Critical · published January 14, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
36.6
In the wild
Unconfirmed
What it is

🚨 HTML entities leaking into posts can turn your Discourse AI conversations into an unexpected mess! 🔥 Think of it like a restaurant where the chef accidentally slips a note with confidential recipe secrets into a customer’s takeout bag. When the customer shares it, the whole town gets a peek at what was meant to be private! An attacker could exploit this vulnerability to inject malicious content into shared Discourse AI conversations. This means that unsuspecting users might view posts that are not only embarrassing but could also lead to security risks, like revealing sensitive data or executing unwanted scripts. It's a recipe for disaster!

Put simply

Think of it like a restaurant where the chef accidentally slips a note with confidential recipe secrets into a customer’s takeout bag. When the customer shares it, the whole town gets a peek at what was meant to be private! This vulnerability allows HTML entities from shared Discourse AI Bot conversations to leak into the Discourse application, potentially exposing users to cross-site scripting attacks when they engage with affected posts.

What to do

An attacker could exploit this vulnerability to inject malicious content into shared Discourse AI conversations. This means that unsuspecting users might view posts that are not only embarrassing but could also lead to security risks, like revealing sensitive data or executing unwanted scripts. It's a recipe for disaster! Update your Discourse AI plugin immediately with the fix in commit `92f122c`. If you can't update right away, go to your site settings and remove all groups from `ai bot public sharing allowed groups` to halt any further leaking. Don't wait! You've got the power to fix this! Follow these steps, and you'll have your Discourse clean and secure in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00433 · 36.6th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-01-14T22:39Z
EPSS history
Timeline
  • 14 JAN 22:39Z
    Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse
    cvelistv5