CVE-2026-27570

Discourse Vulnerable to Stored XSS via Shared AI Conversation Onebox

Published Mar 19, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, the onebox method in the SharedAiConversation model renders the conversation title directly into HTML without proper sanitization. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch. As a workaround, tighten access by changing the `ai_bot_public_sharing_allowed_groups` site setting.

Analysis

AI-generated

Technical impact

The vulnerability arises when the SharedAiConversation onebox renders the conversation title directly into HTML without sanitizing user input, enabling an attacker to embed malicious scripts. Once a forged title is stored, any user who views that conversation will execute the script in their browser, potentially granting the attacker access to the user’s session or credentials. This flaw is classified as CWE‑79 – Improper Neutralization of Input During Web Page Generation.

Affected Systems

The affected product is Discourse, the open‑source discussion platform. Versions before 2026.3.0‑latest.1, 2026.2.1, and 2026.1.2 are vulnerable. These release lines include a patch that sanitizes the title. No other vendors or products are listed.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity, and the EPSS score of less than 1% suggests a low chance of exploitation. The vulnerability is not part of CISA’s KEV catalog. Exploitation requires the attacker to be able to create a shared AI conversation – an action that is inferred to be authenticated and performed by a user with sufficient privileges. Once a malicious title is created, the stored XSS can be triggered for any user that visits the conversation page, giving the attacker a broad impact across the site.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Discourse to version 2026.3.0‑latest.1, 2026.2.1, or 2026.1.2 or later.
  • If an upgrade is not immediately possible, restrict the shared AI conversation feature by adjusting the ai_bot_public_sharing_allowed_groups site setting to exclude untrusted user groups.
  • Verify that no compromised conversation titles exist and ensure all stored titles are rendered safely before deploying the fixes.

Generated by OpenCVE AI on March 25, 2026 at 03:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*
cpe:2.3:a:discourse:discourse:2026.3.0:*:*:*:latest:*:*:*
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Discourse
Discourse discourse
Vendors & Products Discourse
Discourse discourse
Type Values Removed Values Added
Description Discourse is an open-source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2, the onebox method in the SharedAiConversation model renders the conversation title directly into HTML without proper sanitization. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch. As a workaround, tighten access by changing the `ai_bot_public_sharing_allowed_groups` site setting.
Title Discourse Vulnerable to Stored XSS via Shared AI Conversation Onebox
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 24, 2026, 7:43 PM
Reserved
Feb 20, 2026, 5:40 PM
Status
Analyzed
Published
Mar 19, 2026, 9:17 PM
Modified
Jun 17, 2026, 10:27 AM