PyPI
CVE-2026-128128
AIOHTTP: WebSocket max_msg_size bypass via integer overflow
- Severity
- High 7.5
- Published
- 16 Nov 2026
- Last changed
- 20 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 3.14.4
- Exploit chance
- 0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-3rp8-rxj8-mvjw, PYSEC-2026-4395
- Sources
- OSV.dev and GitHub
Description
The max_msg_size check in the WebSocket reader added the declared frame length to the size of the partial message already buffered. In the C extension this addition is 64-bit arithmetic, so a declared length close to 2**63 overflowed and the check passed.
An attacker could bypass max_msg_size and cause unbounded memory use by streaming an oversized WebSocket message after a small non-final fragment.
Workarounds
If unable to upgrade, the Python reader is unaffected and can be used with AIOHTTP_NO_EXTENSIONS=1.
Patch: https://github.com/aio-libs/aiohttp/commit/8cfbe9abe5e11b84006a10f9bdf82bf607671dab
Affected software
| Software | Affected versions |
|---|---|
aiohttpPyPI · osv:PyPI:aiohttp |
|
About aiohttp
- Weekly downloads (PyPI)
- 133,681,616PyPI Stats, 24 Nov 2026
Vulnerabilities in aiohttp
- In our list
- 9
- Published in the last 12 months
- 9
- Critical, last 12 months
- 0
- High, last 12 months
- 8
- Known exploited
- 0
- CVE-2026-128124AIOHTTP: Event loop stall in add_domain() wildcard matchingHigh 16 Nov 2026
- CVE-2026-128125AIOHTTP: Unbounded cookie storage in client CookieJarMedium 16 Nov 2026
- CVE-2026-128126AIOHTTP: Too many URL-encoded form fields block the event loopHigh 16 Nov 2026
- CVE-2026-128127AIOHTTP: Base64 multipart parts bypass client_max_sizeHigh 7.5 16 Nov 2026
- CVE-2026-128129AIOHTTP: Unbounded buffering of data received during an upgrade requestHigh 16 Nov 2026
- CVE-2026-128130AIOHTTP: Pure-Python parser request replay and buffer growth behind a declined upgradeHigh 8.2 16 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-128128
- GitHub Advisory Database https://github.com/advisories/GHSA-3rp8-rxj8-mvjw