CVE-2026-72730 in Discourseinfo

Summary

by MITRE • 08/10/2026

Discourse is an open-source discussion platform. Prior to 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0, the Rich Text Editor rendered a chat-transcript username as HTML, allowing stored cross-site scripting. This issue is fixed in versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 08/10/2026

The vulnerability identified in Discourse prior to specific version releases represents a critical stored cross-site scripting flaw that emerged from the platform's handling of chat-transcript usernames within its Rich Text Editor component. This security weakness allowed malicious actors to inject HTML content into user-generated content, creating persistent XSS vectors that could be exploited across multiple user sessions. The issue stemmed from insufficient input sanitization and output encoding mechanisms within the editor's rendering pipeline where usernames from chat transcripts were directly embedded into HTML contexts without proper security measures.

The technical implementation of this vulnerability involved the Rich Text Editor component failing to properly escape or sanitize user-provided identifiers when these were incorporated into HTML markup during chat transcript rendering. When users engaged in chat activities and their usernames appeared within transcript displays, the system would render these identifiers as raw HTML content rather than treating them as plain text entities. This fundamental flaw created an environment where attackers could craft malicious usernames containing script tags or other potentially harmful HTML constructs that would execute in the browsers of other users who viewed the affected content.

The operational impact of this vulnerability extends beyond simple XSS exploitation to encompass potential privilege escalation and data exfiltration scenarios. Attackers leveraging this flaw could execute arbitrary JavaScript within victims' browser contexts, potentially accessing session cookies, performing actions on behalf of authenticated users, or redirecting victims to malicious domains. The persistent nature of stored XSS attacks means that compromised content would remain active until manually removed or the affected system was updated, creating extended attack windows for threat actors. This vulnerability particularly affected Discourse's chat functionality and transcript features where user identifiers were displayed in rendered content contexts.

Security mitigations for this vulnerability required comprehensive input validation and output encoding implementations within the Rich Text Editor component. The fixed versions of Discourse addressed this by implementing proper HTML escaping mechanisms for all user-provided content, including usernames from chat transcripts, ensuring that any potentially malicious HTML characters were properly encoded before rendering. Additionally, the updates incorporated stricter content sanitization processes that filtered out or neutralized dangerous script elements while preserving legitimate formatting and display functionality. This remediation aligns with established security practices outlined in CWE-79 for cross-site scripting prevention and follows ATT&CK techniques for input validation and output encoding to prevent malicious code execution in web applications.

Organizations utilizing Discourse should prioritize immediate deployment of the patched versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0 to eliminate the risk of persistent XSS attacks. System administrators should also consider implementing additional monitoring for suspicious content patterns and user behavior that might indicate exploitation attempts. The vulnerability demonstrates the critical importance of proper input sanitization in web applications and highlights how seemingly innocuous features like username display can become attack vectors when security controls are inadequate. This incident underscores the need for comprehensive security testing throughout the software development lifecycle, particularly for components handling user-generated content and rich text rendering functionality that may inadvertently create XSS vulnerabilities through improper output encoding practices.

Responsible

GitHub M

Reservation

08/10/2026

Disclosure

08/10/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!