Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2493+ Articles
160+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-55674: Discourse Unauthenticated HTML Injection via Cookie
CVE-2026-55674: Discourse Unauthenticated HTML Injection via Cookie

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-55674

CVE-2026-55674: Discourse Unauthenticated HTML Injection via Cookie

A CVSS 9.3 critical flaw in Discourse allows unauthenticated attackers to inject arbitrary HTML using a crafted cookie value.

Dylan H.

Security Team

August 18, 2026
2 min read

Affected Products

  • Discourse < 2026.1.6, < 2026.5.2, < 2026.6.1, < 2026.7.0

Overview

A critical HTML injection vulnerability has been disclosed in Discourse, the popular open-source discussion platform. Tracked as CVE-2026-55674 with a CVSS score of 9.3, this flaw allows an unauthenticated remote attacker to inject arbitrary HTML content into any Discourse page by sending a single crafted HTTP request.

The vulnerability stems from improper sanitization of the color_scheme_id (and dark_scheme_id) cookie values, which were rendered directly into page output without adequate escaping.

Technical Details

Prior to the patched versions (2026.1.6, 2026.5.2, 2026.6.1, and 2026.7.0), Discourse accepted cookie values for color scheme preferences and rendered them inline without proper sanitization. An attacker could set a malicious color_scheme_id cookie containing arbitrary HTML — including <script> tags or phishing content — which would then be rendered on any page the victim visits.

Because no authentication is required, the attack surface is extremely broad. Any public or semi-public Discourse instance is vulnerable to:

  • Cross-site scripting (XSS) via injected script tags
  • Phishing overlays rendered on top of legitimate content
  • Session hijacking if combined with social engineering
  • Data exfiltration from the browser context

The vulnerability requires only a single HTTP request with a crafted cookie, making it trivial to exploit at scale.

Affected Versions

BranchFixed Version
2026.1.x2026.1.6
2026.5.x2026.5.2
2026.6.x2026.6.1
2026.7.x2026.7.0

Remediation

Discourse instance administrators should immediately upgrade to one of the patched versions. No workaround is available that does not involve upgrading.

  1. Update your Discourse installation to the latest stable release
  2. Review access logs for any unusual color_scheme_id cookie values
  3. Check for injected content in cached pages or CDN caches

If you are using a managed Discourse hosting service, verify with your provider that the patch has been applied.

Severity Assessment

AttributeValue
CVSS Score9.3 (Critical)
Attack VectorNetwork
AuthenticationNone Required
User InteractionNone
ImpactHTML/Script Injection

References

  • NVD — CVE-2026-55674
  • Discourse Security Advisories
#CVE#Discourse#HTML Injection#Web Security#Vulnerability

Related Articles

CVE-2026-12877: Critical SQL Injection in WordPress Project Management Plugin

An unauthenticated SQL injection flaw with a CVSS score of 9.1 affects the Project Management, Bug and Issue Tracking Plugin for WordPress before version...

3 min read

CVE-2026-16152: SQL Injection in SourceCodester Class and Exam Timetabling System

A remotely exploitable SQL injection vulnerability has been disclosed in SourceCodester Class and Exam Timetabling System 1.0. The flaw in /edit_rooma.php...

2 min read

CVE-2026-16154: SQL Injection in SourceCodester Timetabling Room Management

A second SQL injection vulnerability in SourceCodester Class and Exam Timetabling System 1.0 has been disclosed, this time affecting the /edit_room1.php...

2 min read
Back to all Security Alerts