All vulnerabilities

Servers and applications

CVE-2026-55674

Cache poisoning/XSS via color scheme cookies

Severity
Critical 9.3
Published
28 Jul 2026
Last changed
28 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
2026.1.6, 2026.5.2, 2026.6.1, 2026.7.0
Exploit chance
0.6% in the next 30 daysHigher than 48% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Also known as
GHSA-qx4v-rg4v-pm2g
Sources
Project advisories (GitHub)

Description

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.

Since these cookies were not part of the anonymous cache key, the poisoned response was cached and served to all subsequent anonymous visitors (scoped per User-Agent), turning a single request into a persistent stored XSS affecting all anonymous users. No authentication or user interaction is required. Successful exploitation could lead to session/credential theft, redirection, phishing, or full client-side compromise.

From discourse/discourse's security advisory.

Workarounds

N/A

Workarounds as given by discourse/discourse's security advisory.

Affected software

SoftwareAffected versions
DiscourseServers and applications · github:discourse/discourse
  • Every version before 2026.7.0
  • From 2026.1.0-latest before 2026.1.6
  • From 2026.5.0-latest before 2026.5.2
  • From 2026.6.0-latest before 2026.6.1

About Discourse

open source Internet forum software application

From Wikidata, CC0 1.0.
Docker Hub pulls
175,357Docker Hub, 15 Nov 2026
GitHub stars
48,085GitHub, 15 Nov 2026
Forks
9,063GitHub, 15 Nov 2026
License
GNU General Public License, version 2.0Wikidata
Written in
Ruby, JavaScriptWikidata
First released
2013Wikidata
First published on GitHub
12 Jan 2013GitHub

References