Skip to main content
← All vulnerabilities
CVE-2026-55674

Discourse: Cache poisoning/XSS via color scheme cookies

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2026.1.6, 2026.5.2, 2026.6.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • discourse discourse

    fixed in 2026.1.6; From 2026.5.0-latest · fixed in 2026.5.2; From 2026.6.0-latest · fixed in 2026.6.1

References 1

GitHub · discourse/discourse