AIOHTTP: WebSocket receive queue limits bypassed by small or compressed messages
GHSA-5rmc-48h2-hvcm · CVE-2026-128132 · PYSEC-2026-4400
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Summary
The WebSocket reader continued parsing frames already received after the receive queue had paused the transport, and empty messages were not counted towards the queue size. With permessage-deflate, a single read of compressed frames could add many megabytes of decompressed messages to the queue.
Impact
An attacker could cause excessive memory use in a WebSocket server, or a malicious server against a client, by sending many small or compressed messages faster than the application consumes them.
Patch: https://github.com/aio-libs/aiohttp/commit/0ae507423f681161efa77d20052b4054397c7fb6
References
- WEB https://github.com/aio-libs/aiohttp/security/advisories/GHSA-5rmc-48h2-hvcm
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-128132
- WEB https://github.com/aio-libs/aiohttp/pull/13393
- WEB https://github.com/aio-libs/aiohttp/pull/13545
- WEB https://github.com/aio-libs/aiohttp/pull/13546
- WEB https://github.com/aio-libs/aiohttp/commit/0ae507423f681161efa77d20052b4054397c7fb6
- WEB https://github.com/aio-libs/aiohttp/commit/5e54037933fa8422be5fa8a2002d118ed2d4e5e0
- WEB https://github.com/aio-libs/aiohttp/commit/b62321b6fa264a89f4aca084ad60fc38a59ffa51
- PACKAGE https://github.com/aio-libs/aiohttp
- WEB https://github.com/aio-libs/aiohttp/releases/tag/v3.14.4
Ready to move
Start Securing
Free, no credit card | First findings in minutes