Skip to main content

Discourse EUVDEUVD-2026-60236

| CVE-2026-55674 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-08-17 security-advisories@github.com
9.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Set malicious color_scheme_id cookie in victim browser
  2. Delivery
    Victim loads affected Discourse page
  3. Exploit
    Unescaped cookie breaks out of color-scheme tag
  4. Execution
    Injected tag bypasses nonce-based CSP
  5. Persist
    Arbitrary JavaScript runs in victim session
  6. Impact
    Steal session tokens or forge admin 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

Exploitation requires that the crafted value be delivered in the victim's color_scheme_id or dark_scheme_id cookie and that the victim then load a Discourse page that renders the color-scheme tag; per the CVSS vector (PR:N) no authentication is needed to trigger the injection, but UI:R means a victim must visit/load the affected page for script execution to occur. The limiting factors are therefore: the attacker must be able to place or influence that specific cookie in the target's browser, the target instance must be running a version prior to 2026.1.6 / 2026.5.2 / 2026.6.1 / 2026.7.0, and a real victim interaction is required - it is not a fully hands-off, zero-interaction remote compromise despite the critical score.

Impact

The signals are largely consistent and point to a genuine high priority: the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N, score 9.3) indicates a network-reachable, low-complexity, unauthenticated attack with a scope change, tempered only by the required user interaction (a victim must load an affected page in a state where the malicious cookie is present). No EPSS score was provided, there is no CISA KEV listing, and no public proof-of-concept was referenced, so real-world exploitation pressure cannot be quantified from the input - this is a critical-severity issue by construction rather than a confirmed campaign. Because Discourse instances are typically public-facing community forums, a working CSP-bypassing XSS is high-value (session/cookie theft, admin action forgery, watering-hole style attacks), so any internet-exposed operator should treat patching as urgent despite the absence of exploitation telemetry. The main honest caveat is that UI:R and the mechanism of getting the attacker-controlled cookie into the victim's browser add a practical hurdle that raw 9.3 scoring understates.

Exploit ScenarioDerived

An attacker induces a victim's browser to send a color_scheme_id (or dark_scheme_id) cookie containing a crafted payload - for instance via a subdomain cookie-setting trick, a prior injection point, or a link/scripted request - then gets the victim to load an affected Discourse page. The unescaped cookie renders into the color-scheme tag, breaks out of the attribute, and runs attacker JavaScript in the victim's authenticated session, enabling session-token theft or admin actions. No public proof-of-concept was referenced in the source data.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 17, 2026

Stored/reflected cross-site scripting in Discourse before 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0 lets an unauthenticated attacker execute arbitrary JavaScript in a visitor's browser by supplying a crafted color_scheme_id or dark_scheme_id cookie. Because the cookie is rendered into a color-scheme tag without HTML escaping, an attacker can break out of the attribute context and inject markup that defeats Discourse's nonce-based Content Security Policy. A vendor patch exists and the flaw carries a critical CVSS of 9.3, but no public exploit has been identified at time of analysis and it is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade to 2026.1.6, 2026.5.2, 2026.6.1, or 2026.7.0, choosing the fixed release that matches your current branch (for example, a 2026.6.x instance should move to 2026.6.1). Follow the official advisory at https://github.com/discourse/discourse/security/advisories/GHSA-qx4v-rg4v-pm2g. If you cannot patch immediately, the specific compensating control that matches the mechanism is to strip or reject inbound color_scheme_id and dark_scheme_id cookies at a reverse proxy/WAF before requests reach Discourse (e.g., unset those cookie names), which prevents the tainted value from being rendered; the trade-off is that users lose custom color-scheme selection until the value is re-set legitimately. Because the payload defeats the app's nonce-based CSP, do not rely on CSP as the mitigation here. After upgrading, consider forcing session/cookie invalidation for users who may have visited a compromised page.

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 a Ruby on Rails-based open-source discussion/forum platform. The root cause is CWE-79 (improper neutralization of input during web page generation): the color_scheme_id and dark_scheme_id cookie values are interpolated into a server-rendered color scheme <link>/<style> tag attribute without HTML-entity escaping. This allows attribute-context breakout, and the injected element is crafted to slip past Discourse's nonce-based CSP - meaning the usual CSP mitigation that would normally blunt injected inline script is bypassed, restoring full arbitrary-JavaScript execution. No CPE strings were supplied in the input; affected products are identified from the vendor GHSA advisory and ENISA EUVD version ranges rather than NVD CPE data.

Know when the next one hits your stack

  • 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) PRIMARY 9.3 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 9.3 CRITICAL

Unauthenticated network injection (PR:N, AV:N, AC:L) but a victim must load the page (UI:R); CSP bypass into the browser security context is a scope change (S:C) with high confidentiality/integrity impact and no availability effect.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Aug 17, 2026 - 16:31 EUVD
CVE Published
Aug 17, 2026 - 16:16 cve.org
CRITICAL 9.3

DescriptionCVE.org

Discourse is an open-source discussion platform. Prior to 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0, an unauthenticated attacker could send a single request with a crafted color_scheme_id (or dark_scheme_id) cookie to inject arbitrary HTML into a Discourse page. Because the cookie value was rendered into a color scheme tag without escaping, the attacker could break out of the attribute and inject a tag that bypassed Discourse's nonce-based Content Security Policy, resulting in arbitrary JavaScript execution in visitors' browsers. This issue is fixed in versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.

Executive ViewAI

Why It Matters

A critical cross-site scripting vulnerability in Discourse (CVSS 9.3, CVE-2026-55674) allows unauthenticated attackers to inject malicious JavaScript into visitor browsers via cookie manipulation, bypassing Content Security Policy controls. This threatens user credential theft, session hijacking, and malware distribution across all Discourse deployments, requiring immediate patching to protect user trust and organizational security posture.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Medium
popular open-source forum platform, common but narrower than WordPress
Data Quality
6 sources
Confidence: High

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

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