CVE-2026-128129: AIOHTTP: Unbounded buffering of data received during an upgrade request
Summary
While a request flagged as an upgrade (e.g. a WebSocket handshake) was being handled, all further data received on the connection was buffered with no size limit or flow control until the handler completed.
Impact
An attacker could cause unbounded memory use by streaming data behind an upgrade request to any handler that does not immediately accept or reject the upgrade.
---
Patch: https://github.com/aio-libs/aiohttp/commit/3d850ee9b92573c7e913821cbcb96005beb3f4df
Other sources
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, aiohttp buffers all additional connection data received while a request marked for upgrade, such as a WebSocket handshake, is being handled, without a size limit or flow control. A remote attacker can stream data behind an upgrade request to a handler that does not immediately accept or reject the upgrade and cause unbounded memory consumption. This issue is fixed in version 3.14.4.
— NVD
AIOHTTP: Unbounded buffering of data received during an upgrade request
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/aiohttpto a version that resolves this vulnerability.Fixed in 3.14.4 - Upgrade
Upgrade
aiohttpto a version that resolves this vulnerability.Fixed in 3.14.4
Event History
Frequently Asked Questions
Which deployments are realistically exposed to this issue?
Deployments using aiohttp versions earlier than 3.14.4 are exposed when they handle requests marked for protocol upgrade, such as WebSocket handshakes, and the handler does not promptly accept or reject the upgrade.
What does an attacker need to do to trigger the memory exhaustion?
A remote attacker can send an upgrade request and continuously stream additional data behind it while the server is handling the upgrade. No privileges or user interaction are required.
Are all aiohttp applications affected by default?
The issue affects aiohttp versions before 3.14.4, but exploitation depends on an upgrade request reaching a handler that delays its upgrade decision. Applications that do not handle upgrade requests are not described as exploitable by the provided information.
What should be done if patching cannot happen immediately?
Ensure upgrade-request handlers immediately accept or reject upgrade attempts, rather than leaving them pending while receiving additional connection data. Upgrade aiohttp to version 3.14.4 when possible.