HTML Entity Exposure in Discourse AI Plugin

Check todayFull system takeover over the network by a logged-in user.
9.1CRITICAL

CVE-2024-54142

Key Information:

Vendor

Discourse

CVE ID
CVE ID:
CVE-2024-54142
Vendor
CVE Published:
14 January 2025

Timeline

  • Vulnerability published

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory ↗
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Discourse-ai. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • Its CVSS severity is critical (9.1).

What is CVE-2024-54142?

The Discourse AI plugin introduces a vulnerability that could potentially expose HTML entities present in conversations when shared in posts. If a user visits a post featuring a onebox linked to a conversation, these HTML entities may inadvertently leak into the Discourse application. The issue has been mitigated in a recent commit, and users are strongly encouraged to update their installations. For those unable to update, it is recommended to modify the 'ai bot public sharing allowed groups' site setting to prevent such leakage.

Affected Version(s)

discourse-ai < 92f122c

References

Authorization Flaw in Discourse

CVE-2026-44787
DiscourseDiscourse8.2HIGH

HTML Injection Flaw in Discourse Invitation System

CVE-2025-48062
DiscourseDiscourse7.1HIGH
View more Discourse vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
Required
Scope:
Changed
.