Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSet malicious color_scheme_id cookie in victim browser
-
DeliveryVictim loads affected Discourse page
-
ExploitUnescaped cookie breaks out of color-scheme tag
-
ExecutionInjected tag bypasses nonce-based CSP
-
PersistArbitrary JavaScript runs in victim session
-
ImpactSteal 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
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.
EUVD-2026-60236
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB