# PYSEC-2026-4395: AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python

- Database: PyPA
- Published: 2026-11-13
- Modified: 2026-11-20

## Tracked as

- [CVE-2026-128128](https://cve.now/CVE-2026-128128.md): aiohttp denial of service in WebSocket message size check

## Also published as

- [GHSA-3RP8-RXJ8-MVJW](https://cve.now/GHSA-3RP8-RXJ8-MVJW.md) (GitHub)

## Affected versions

- aiohttp (PyPI): fixed in 3.14.4

## Description

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, the C WebSocket reader adds a declared frame length to the size of an already buffered partial message using signed 64-bit arithmetic. A length near two to the power of 63 can overflow, allowing the max_msg_size check to pass. A remote peer can send a small non-final fragment followed by an oversized message and cause unbounded memory consumption. The Python WebSocket reader is unaffected. This issue is fixed in version 3.14.4.

## References

- https://github.com/aio-libs/aiohttp/releases/tag/v3.14.4
- https://github.com/aio-libs/aiohttp/commit/8c8906a19f64e52ef6a7d44d65217eb3c5af413f
- https://github.com/aio-libs/aiohttp/commit/8cfbe9abe5e11b84006a10f9bdf82bf607671dab
- https://github.com/aio-libs/aiohttp/pull/13415
- https://github.com/aio-libs/aiohttp/pull/13494
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-3rp8-rxj8-mvjw

Page: https://cve.now/PYSEC-2026-4395

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
