Discourse: Cache poisoning/XSS via color scheme cookies (CVE-2026-55674)
Discourse versions prior to 2026.1.6, 2026.5.2, and 2026.6.1 contain a vulnerability where an unauthenticated attacker can inject arbitrary HTML via crafted color_scheme_id or dark_scheme_id cookies. This injection bypasses the platform's nonce-based Content Security Policy, enabling arbitrary JavaScript execution in visitors' browsers. The issue is fixed in versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.
AI Analysis
Technical Summary
Discourse, an open-source discussion platform, has a critical vulnerability (CVE-2026-55674) affecting certain versions before 2026.1.6, 2026.5.2, and 2026.6.1. The flaw arises because the color_scheme_id and dark_scheme_id cookie values are rendered into a color scheme tag without proper escaping. An attacker can craft a cookie to break out of the attribute context and inject arbitrary HTML, which bypasses the nonce-based Content Security Policy. This leads to arbitrary JavaScript execution in the browsers of site visitors. The vulnerability is addressed in Discourse versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.
Potential Impact
An unauthenticated attacker can execute arbitrary JavaScript in the browsers of visitors to a vulnerable Discourse instance by exploiting the cookie injection flaw. This can lead to cross-site scripting (XSS) attacks, potentially compromising user sessions, stealing sensitive information, or performing actions on behalf of users.
Mitigation Recommendations
Apply the official patches by upgrading Discourse to version 2026.1.6, 2026.5.2, 2026.6.1, or later versions such as 2026.7.0. These versions contain fixes that properly escape cookie values to prevent injection and bypass of the Content Security Policy. No other mitigation is indicated by the vendor advisory.
Discourse: Cache poisoning/XSS via color scheme cookies (CVE-2026-55674)
Description
Discourse versions prior to 2026.1.6, 2026.5.2, and 2026.6.1 contain a vulnerability where an unauthenticated attacker can inject arbitrary HTML via crafted color_scheme_id or dark_scheme_id cookies. This injection bypasses the platform's nonce-based Content Security Policy, enabling arbitrary JavaScript execution in visitors' browsers. The issue is fixed in versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.
Affected software
pkg:bitnami/discourseRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Discourse, an open-source discussion platform, has a critical vulnerability (CVE-2026-55674) affecting certain versions before 2026.1.6, 2026.5.2, and 2026.6.1. The flaw arises because the color_scheme_id and dark_scheme_id cookie values are rendered into a color scheme tag without proper escaping. An attacker can craft a cookie to break out of the attribute context and inject arbitrary HTML, which bypasses the nonce-based Content Security Policy. This leads to arbitrary JavaScript execution in the browsers of site visitors. The vulnerability is addressed in Discourse versions 2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0.
Potential Impact
An unauthenticated attacker can execute arbitrary JavaScript in the browsers of visitors to a vulnerable Discourse instance by exploiting the cookie injection flaw. This can lead to cross-site scripting (XSS) attacks, potentially compromising user sessions, stealing sensitive information, or performing actions on behalf of users.
Mitigation Recommendations
Apply the official patches by upgrading Discourse to version 2026.1.6, 2026.5.2, 2026.6.1, or later versions such as 2026.7.0. These versions contain fixes that properly escape cookie values to prevent injection and bypass of the Content Security Policy. No other mitigation is indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-discourse-2026-55674
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2026-55674"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Critical
- Cvss Version
- null
Threat ID: 6a885f20acd9273b493f7d13
Added to database: 08/21/2026, 14:22:24 UTC
Last enriched: 08/21/2026, 14:30:28 UTC
Last updated: 08/21/2026, 22:52:13 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.