Intel

AIKIDO-2026-118856

websockets is vulnerable to Information Disclosure

Information Disclosure Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 18, 2026

61

Medium Risk

This Affects:

PYTHONwebsockets
8.0 - 16.0
Fixed in 16.1
Are you affected? Scan for Free

TL;DR

The asyncio and legacy WebSocket clients replay any configured Authorization, Cookie, and Proxy-Authorization headers unchanged when following a redirect to a different origin. A cross-origin redirect target then receives those credentials in the follow-up connection attempt. This exposes secrets that were only meant for the original host to whatever server controls the redirect. The fix strips these headers from additional_headers before reconnecting to the redirect target.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your client sends Authorization, Cookie, or Proxy-Authorization headers while following redirects to servers on a different origin. The legacy client is affected from 8.0; the asyncio client from 13.1.

Background info

websockets is vulnerable to Information Disclosure in versions 8.0 - 16.0.

How to fix this

Upgrade the websockets library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform