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-71485: Critical Header Injection in Centrifugo Real-Time Messaging Server
CVE-2026-71485: Critical Header Injection in Centrifugo Real-Time Messaging Server

Critical Security Alert

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

SECURITYCRITICALCVE-2026-71485

CVE-2026-71485: Critical Header Injection in Centrifugo Real-Time Messaging Server

Centrifugo before 6.9.0 propagates client-controlled ConnectRequest headers into internal context without sanitization, scoring CVSS 9.1 Critical.

Dylan H.

Security Team

August 21, 2026
4 min read

Affected Products

  • Centrifugo < 6.9.0

Executive Summary

A critical header injection vulnerability (CVE-2026-71485, CVSS 9.1) has been disclosed in Centrifugo, a widely used open-source scalable real-time messaging server. Versions prior to 6.9.0 copy the client-controlled protocol.ConnectRequest.headers map through OnClientConnecting, ConnectEvent.Headers, and SetEmulatedHeadersToContext without adequate sanitization. This allows a malicious client to inject arbitrary headers into the server's internal request context, potentially affecting authorization logic, logging pipelines, proxied upstream services, or other header-dependent middleware.

Users of Centrifugo should upgrade to 6.9.0 or later immediately.

Vulnerability Details

FieldValue
CVE IDCVE-2026-71485
CVSS Score9.1 (Critical)
ComponentCentrifugo (open-source real-time messaging server)
Affected Versions< 6.9.0
Fixed Version6.9.0
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone

Root Cause

Centrifugo processes WebSocket and HTTP-streaming connections. During connection setup, the client sends a ConnectRequest protobuf message that may include a headers map — typically used to forward original HTTP headers in emulated transport modes.

In the vulnerable code path (internal/client/handler.go), this map is copied verbatim through:

  1. OnClientConnecting — the hook that fires when a new client connects
  2. ConnectEvent.Headers — the event structure passed to server-side handlers
  3. SetEmulatedHeadersToContext — which places these headers into the Go request context

Because the server trusts this client-supplied map as if it were the actual incoming HTTP headers, an unauthenticated or low-privilege client can supply arbitrary key-value pairs. Any downstream component that reads headers from the context (authorization middleware, proxy forwarding, audit logging, rate limiting) will then operate on attacker-controlled values.

Impact

Depending on how Centrifugo is deployed and what components consume headers from context, the impact can include:

  • Authorization bypass: If a proxy or middleware grants elevated access based on specific header values (e.g., X-User-Role: admin, X-Internal-Request: true), a client can self-elevate
  • SSRF / request smuggling: Injected headers forwarded to upstream services may alter routing or trigger unintended backend behavior
  • Log poisoning: Injecting crafted values into headers that are logged can corrupt audit trails or introduce log-injection payloads
  • Cache poisoning: In configurations with edge caches, injected headers may cause incorrect cache keying

The CVSS 9.1 score reflects the low attack complexity and absence of authentication requirements.

Affected Deployments

All Centrifugo deployments using versions prior to 6.9.0 that:

  • Expose the WebSocket or HTTP-streaming endpoints to untrusted clients
  • Use any server-side hooks or proxy forwarding that read headers from context

Deployments behind strict authentication gateways that validate all header values before they reach Centrifugo are at reduced (but not eliminated) risk.

Remediation

Upgrade to Centrifugo 6.9.0 or later. The fix sanitizes the ConnectRequest.headers map, ensuring client-supplied values cannot override or inject headers into the server's internal context.

Workarounds (if immediate upgrade is not possible)

  1. Block untrusted WebSocket connections at the edge using a reverse proxy or WAF that validates or strips the protocol.ConnectRequest payload
  2. Harden downstream middleware to never make authorization decisions solely on header values that could originate from clients
  3. Audit proxy forwarding rules to ensure client-supplied header values are not forwarded to privileged backend services
  4. Enable request logging to detect anomalous header values in ConnectRequest payloads

Detection Guidance

Monitor your Centrifugo logs and upstream service logs for:

  • Unexpected header values in connection events — particularly headers that resemble internal/trust headers (X-Forwarded-For, X-Real-IP, X-User-*, Authorization, X-Internal-*)
  • Authorization decisions that seem inconsistent with expected client access levels
  • Unusual upstream requests originating from Centrifugo's proxy forwarding with unexpected header content

References

  • NVD — CVE-2026-71485
  • Centrifugo GitHub Repository
  • Centrifugo 6.9.0 Release
#CVE-2026-71485#Centrifugo#Header Injection#Real-Time Messaging#Vulnerability#Open Source

Related Articles

CVE-2026-48749: Incus Malicious Image Arbitrary File Write and RCE (CVSS 9.9)

Critical Incus flaw lets a specially crafted container image read or write arbitrary host files, leading to remote code execution. Fixed in v7.2.0.

3 min read

CVE-2026-48750: Incus Exec-Output Symlink Attack Enables Host File Write (CVSS 9.9)

Critical Incus flaw: if exec-output is a symlink, command output files are written to arbitrary host paths. Fixed in v7.2.0.

3 min read

CVE-2026-62940: Incus Migration Security Restriction Bypass (CVSS 9.9)

Critical Incus flaw allows privilege escalation via unrestricted config overrides during cross-cluster instance migration. Patch to v7.3.0.

3 min read
Back to all Security Alerts