CVE-2026-59881: AIOHTTP WebSocket Client Accepts Compressed Frames Vulnerability
MODERATECVE-2026-59881 is a MODERATE websocket client accepts compressed frames vulnerability (CWE-20: Improper Input Validation) affecting AIOHTTP libraries in the PyPI ecosystem. The issue involves websocket client accepts compressed frames without negotiated permessage-deflate. Remediation is available by upgrading affected packages to version 3.14.2.
CVE-2026-59881 at a Glance
How to Fix CVE-2026-59881
To remediate this vulnerability, upgrade all affected AIOHTTP dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install aiohttp>=3.14.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show aiohttp
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-59881, inspect your installed packages using pip:
pip show aiohttp
Analyze the terminal output to locate any version of AIOHTTP in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.14.2), your application is affected.
Note: The pip show aiohttp command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In AIOHTTP, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-59881 Affected AIOHTTP Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aiohttp
|
PyPI |
< 3.14.2
|
3.14.2
|
References
Frequently Asked Questions
What is CVE-2026-59881?
Which AIOHTTP versions are affected?
What version fixes CVE-2026-59881?
Is aiohttp affected?
What CWE is associated with CVE-2026-59881?
How can I check PyPI dependencies for CVE-2026-59881?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mq44-7p77-q5h7",
"modified" : "2026-08-03T20:40:55Z",
"published" : "2026-08-03T20:40:55Z",
"aliases" : [ "CVE-2026-59881" ],
"summary" : "AIOHTTP: WebSocket client accepts compressed frames without negotiated permessage-deflate",
"details" : "### Summary\n\nThe client accepts and decompresses frames with the RSV1 bit set even when the `permessage-deflate` extension was not negotiated.\n\n### Impact\n\nA client may unexpectedly decompress WebSocket frames when explicitly opted out. This could lead to additional CPU/memory consumption, but is unlikely to be a significant issue unless a zip bomb vulnerability or similar is also present.\n\n---\n\nPatch: https://github.com/aio-libs/aiohttp/commit/47fb6ae354d4fa22048f4dbe7dbf82b625f0a2f6",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "aiohttp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.14.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.14.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aio-libs/aiohttp/security/advisories/GHSA-mq44-7p77-q5h7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-59881"
}, {
"type" : "WEB",
"url" : "https://github.com/aio-libs/aiohttp/pull/12978"
}, {
"type" : "WEB",
"url" : "https://github.com/aio-libs/aiohttp/commit/47fb6ae354d4fa22048f4dbe7dbf82b625f0a2f6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aio-libs/aiohttp"
}, {
"type" : "WEB",
"url" : "http://github.com/aio-libs/aiohttp/releases/tag/v3.14.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-03T20:40:55Z",
"nvd_published_at" : "2026-07-30T19:18:33Z"
}
}