Intel

AIKIDO-2026-625161

websockets is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 6 days ago

53

Medium Risk

This Affects:

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

TL;DR

The permessage-deflate extension flushes a final empty block after decompressing a fragmented, compressed message of at least 2044 bytes, and discards any bytes produced by that flush without checking them against max_size. A crafted compressed message can make the connection accept more decompressed data than the configured message size limit allows. The decoder also does not reject continuation frames with the RSV1 bit set, letting a peer desynchronize the decompressor state. The fix checks the flush output against max_size and rejects RSV1 on continuation frames.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the connection negotiates the permessage-deflate extension.

Background info

websockets is vulnerable to Denial of Service (DoS) in versions 4.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