Skip to main content

Discourse EUVDEUVD-2026-55666

| CVE-2026-72727 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-10 GitHub_M
4.8
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register low-privilege Discourse account
  2. Delivery
    Submit crafted XSS payload to trigger moderation review
  3. Exploit
    Payload stored server-side in review queue
  4. Execution
    Moderator opens review queue on CSP-weakened instance
  5. Persist
    Stored script executes in moderator browser session
  6. Impact
    Exfiltrate session token or perform privileged actions

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.

Exploitation Conditions

Three concrete prerequisites must all be true simultaneously. First, the attacker must hold a valid low-privileged Discourse account (PR:L) - anonymous or unauthenticated users cannot submit content to the moderation queue. Second, the target Discourse instance must have its default Content Security Policy modified or disabled by a site operator - this is a non-default administrative configuration decision; sites running Discourse's default CSP are not exploitable. Third, a moderator must actively open and view the moderation review queue containing the crafted content (UI:A) - exploitation cannot be triggered remotely without this human action. What limits exploitation: the CSP prerequisite alone disqualifies the majority of standard Discourse deployments; the moderator interaction requirement prevents automated or opportunistic mass exploitation.

Impact

The CVSS 4.0 score of 4.8 (Medium) accurately reflects a constrained-but-real risk. The vector AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N confirms network reachability with low complexity, but mandates both low-privilege authentication and active moderator interaction, driving the score down significantly from a theoretical maximum. The most important limiting signal is in the CVE description itself: exploitation only succeeds on sites with a modified or disabled default CSP - this is not the default Discourse configuration and substantially narrows the exposed population. No EPSS data was provided in the input. No KEV listing and no public POC have been identified, meaning exploitation status is unconfirmed in the wild. Despite the moderate CVSS score, the realistic priority is elevated for Discourse operators who have customized their CSP, and negligible for those running default configurations.

Exploit ScenarioDerived

A registered Discourse user with minimal privileges submits a post or reply containing a crafted stored XSS payload - for example, an obfuscated script tag embedded in content likely to trigger moderator review (e.g., a flagged post). When a moderator opens the review queue on a site where the default CSP has been loosened or removed, the payload executes in the moderator's browser context, potentially harvesting session cookies or CSRF tokens and enabling account takeover or privileged actions on behalf of the moderator. No public POC exists at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 10, 2026

Stored cross-site scripting in Discourse's moderation review queue allows a low-privileged registered user to execute arbitrary JavaScript in a moderator's browser session. All Discourse deployments running versions prior to 2026.1.6, 2026.5.2, 2026.6.1, or 2026.7.0 are affected, but only when the platform's default Content Security Policy has been modified or disabled. No public exploit identified at time of analysis and no CISA KEV listing; real-world risk is bounded by both the CSP prerequisite and the requirement for moderator interaction.

RemediationAI

Upgrade Discourse to the patched release applicable to the deployed branch: 2026.1.6, 2026.5.2, 2026.6.1, or 2026.7.0. Vendor-released patches are confirmed via the GitHub Security Advisory at https://github.com/discourse/discourse/security/advisories/GHSA-pq6q-p5g3-rj54. As an effective interim compensating control, audit and restore Discourse's default Content Security Policy if it has been modified or disabled - the vulnerability's execution is gated on a weakened CSP, so reinstating the default policy blocks exploitation without requiring an immediate upgrade. Note that restoring a previously modified CSP may break site customizations relying on additional allowed script sources; operators should inventory those customizations and re-implement them in a CSP-compatible way (e.g., using nonces or hashes) rather than broadening or disabling the policy.

Affected VersionsENISA

discourse 2026.5.0-latest, < 2026.5.2
discourse 2026.6.0-latest, < 2026.6.1
discourse < 2026.1.6

Affected Packages

euvd discourse fix: 2026.1.6
euvd discourse_2026_5_0_latest fix: 2026.5.2
euvd discourse_2026_6_0_latest fix: 2026.6.1

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

Discourse is an open-source Rails/Ember.js community discussion platform identified by CPE cpe:2.3:a:discourse:discourse. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically a stored - or second-order - XSS: user-submitted content placed into the moderation review queue is not adequately sanitized before rendering to moderators, so a malicious payload persists server-side and fires when a privileged user loads the queue. Discourse ships with a default Content Security Policy specifically to mitigate XSS classes; this vulnerability exploits the gap left when that policy is weakened or removed by operators. The attack surface is the moderator review interface, meaning exploitation requires the attacker to first trigger a content review (e.g., a flag or post-approval workflow).

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

Vendor (GitHub_M) PRIMARY 4.8 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

Low-privileged account required (PR:L); moderator must actively view queue (UI:R); XSS fires in moderator session representing a scope change from submitter to privileged user (S:C).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 10, 2026 - 17:03 EUVD
CVE Published
Aug 10, 2026 - 16:08 cve.org
MEDIUM 4.8

DescriptionCVE.org

Discourse is an open-source discussion platform. Prior to 026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0, a low-privileged user could place crafted content in the moderation review queue that executed stored cross-site scripting when a moderator viewed it on a site with a modified or disabled default Content Security Policy. This issue is fixed in versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
High
widely deployed open-source forum platform across enterprises, OSS projects, and communities
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2025-48954 HIGH POC
8.1 Jun 25

Discourse versions prior to 3.5.0.beta6 contain a reflected cross-site scripting (XSS) vulnerability in social login fun

CVE-2022-46162 CRITICAL POC
9.8 Nov 30

discourse-bbcode is the official BBCode plugin for Discourse. Rated critical severity (CVSS 9.8), this vulnerability is

CVE-2026-27934 HIGH POC
8.7 Mar 19

Unauthorized information disclosure in Discourse discussion platform versions prior to 2026.3.0-latest.1, 2026.2.1, and

CVE-2024-47773 HIGH POC
8.2 Oct 08

Discourse is an open source platform for community discussion. Rated high severity (CVSS 8.2), this vulnerability is rem

CVE-2026-26265 HIGH POC
7.5 Feb 26

Discourse versions prior to 2025.12.2, 2026.1.1, and 2026.2.0 contain an insecure direct object reference (IDOR) in the

CVE-2021-3138 HIGH POC
7.5 Jan 14

In Discourse 2.7.0 through beta1, a rate-limit bypass leads to a bypass of the 2FA requirement for certain forms. Rated

CVE-2026-26077 MEDIUM POC
6.5 Feb 26

Unauthenticated attackers can submit forged webhook payloads to multiple email provider integrations in Discourse versio

CVE-2023-38706 MEDIUM POC
6.5 Sep 15

Discourse is an open-source discussion platform. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploi

CVE-2024-53991 MEDIUM POC
5.9 Dec 19

Discourse is an open source platform for community discussion. Rated medium severity (CVSS 5.9), this vulnerability is r

CVE-2025-48877 CRITICAL
9.8 Jun 09

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

CVE-2023-47121 CRITICAL
9.8 Nov 10

Discourse is an open source platform for community discussion. Rated critical severity (CVSS 9.8), this vulnerability is

CVE-2022-39355 CRITICAL
9.8 Oct 26

Discourse Patreon enables syncronization between Discourse Groups and Patreon rewards. Rated critical severity (CVSS 9.8

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy