HIGH · CVSS 3.1 7.5 EPSS 0.7% · 48th percentile CWE-770

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

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
### Summary 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. ### Impact An attacker could bypass `max_msg_size` and cause unbounded memory use by streaming an oversized WebSocket message after a small non-final fragment. ### Workaround 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

References

Source records: GHSA-3rp8-rxj8-mvjw, PYSEC-2026-4395 (OSV.dev) · EPSS by FIRST, 2026-11-26.