CVE-2026-128128: AIOHTTP: WebSocket max_msg_size bypass via integer overflow
Published 2026-11-13 · Updated 2026-11-20 · Also known as GHSA-3rp8-rxj8-mvjw, PYSEC-2026-4395
Summary
AIOHTTP contains an integer overflow vulnerability in its WebSocket C extension that allows attackers to bypass size limits. Developers using AIOHTTP should update to version 3.14.4 or higher to prevent potential memory exhaustion attacks.
Who is affected
This vulnerability affects deployments using the default C extensions in AIOHTTP. By sending a carefully crafted WebSocket message, an attacker can bypass the max_msg_size constraint, potentially leading to a denial-of-service condition through unbounded memory consumption.
Exploitability
The vulnerability is remotely exploitable without authentication or user interaction, as indicated by the CVSS 3.1 base score of 7.5. The low EPSS score of 0.005 suggests a lower immediate likelihood of widespread exploitation, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the aiohttp package to version 3.14.4 or newer.
- If upgrading is not possible, set the environment variable AIOHTTP_NO_EXTENSIONS=1 to use the unaffected Python-based reader.
How to check your project
- Inspect project requirements files or lock files (e.g., requirements.txt, poetry.lock, Pipfile.lock) for aiohttp versions below 3.14.4.
- Use software composition analysis (SCA) tools to identify dependencies containing the affected aiohttp versions.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | aiohttp |
>= 0, < 3.14.4 | 3.14.4 | python -m pip install 'aiohttp>=3.14.4' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
Does this vulnerability affect all WebSocket connections in AIOHTTP?
The flaw specifically resides in the C extension implementation used for reading WebSocket frames; applications that have disabled these extensions are not affected.
Is this vulnerability being actively exploited in the wild?
There is no record of this vulnerability being listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
What is the primary technical cause of this issue?
The issue is caused by an integer overflow in the C extension where a large declared frame length causes the max_msg_size check to wrap around and incorrectly validate the input.
Original advisory description
References
- WEB https://github.com/aio-libs/aiohttp/security/advisories/GHSA-3rp8-rxj8-mvjw
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-128128
- WEB https://github.com/aio-libs/aiohttp/pull/13415
- WEB https://github.com/aio-libs/aiohttp/pull/13494
- WEB https://github.com/aio-libs/aiohttp/commit/8c8906a19f64e52ef6a7d44d65217eb3c5af413f
- WEB https://github.com/aio-libs/aiohttp/commit/8cfbe9abe5e11b84006a10f9bdf82bf607671dab
- PACKAGE https://github.com/aio-libs/aiohttp
- WEB https://github.com/aio-libs/aiohttp/releases/tag/v3.14.4
Source records: GHSA-3rp8-rxj8-mvjw, PYSEC-2026-4395 (OSV.dev) · EPSS by FIRST, 2026-11-26.