Description
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.
Published: 2026-08-17
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Discourse versions prior to 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0 allow an attacker to inject arbitrary HTML into a page by setting a specially crafted color_scheme_id or dark_scheme_id cookie. The cookie value is rendered inside a color scheme tag without escaping, enabling the attacker to break out of the attribute and insert a script tag that bypasses Discourse’s nonce‑based Content Security Policy, thereby executing arbitrary JavaScript in the browsers of any site visitor. This results in complete remote code execution on the client side and potential theft of sensitive information.

Affected Systems

All installations of the open‑source Discourse discussion platform that are running a version earlier than 2026.1.6, 2026.5.2, 2026.6.1, or 2026.7.0 are at risk. The vulnerability directly affects the Discourse product distributed by the discourse vendor.

Risk and Exploitability

The CVSS score of 9.3 signals a critical severity, and the flaw can be triggered without authentication, making it highly accessible to attackers with network or phone proxy access to the site. Although no EPSS score is presently available, the lack of safeguards and the nature of the flaw suggest a high likelihood of exploitation in the wild. The vulnerability is not yet listed in the CISA KEV catalog, but its critical impact warrants immediate remediation.

Generated by OpenCVE AI on August 17, 2026 at 16:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Discourse to a fixed release (2026.1.6 or later) as soon as possible.
  • If an upgrade cannot be performed immediately, configure the web server or reverse proxy to delete or reject any color_scheme_id or dark_scheme_id cookies before they reach the application, thereby preventing injection.
  • After applying a patch or workaround, verify that the application’s Content Security Policy remains effective by inspecting CSP headers and ensuring that no inline scripts execute.

Generated by OpenCVE AI on August 17, 2026 at 16:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 17 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Discourse
Discourse discourse
Vendors & Products Discourse
Discourse discourse

Mon, 17 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Discourse: Cache poisoning/XSS via color scheme cookies
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

Discourse Discourse
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T15:30:17.691Z

Reserved: 2026-06-17T00:05:03.778Z

Link: CVE-2026-55674

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T16:16:58.917

Modified: 2026-08-17T16:16:58.917

Link: CVE-2026-55674

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T16:45:04Z

Weaknesses
  • CWE-79

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