HIGH · CVSS 3.1 7.5 EPSS 0.8% · 55th percentile CWE-400CWE-407

CVE-2026-128131: AIOHTTP: Concatenated compressed streams cause excessive CPU use

Published 2026-11-13 · Updated 2026-11-24 · Also known as GHSA-h4cc-hm5h-fmm9, PYSEC-2026-4399

Summary

AIOHTTP suffers from a quadratic CPU complexity flaw when decompressing payloads containing many concatenated compressed streams. Engineering and security teams using the PyPI aiohttp library should update to version 3.14.4.

Who is affected

This vulnerability affects both AIOHTTP servers processing compressed request bodies or WebSocket messages and AIOHTTP clients consuming compressed server responses. Exploitation allows an attacker to cause extreme CPU resource consumption and block the application's event loop. Payload size controls such as client_max_size fail to prevent the attack because empty compressed members produce no output while still triggering quadratic processing overhead.

Exploitability

The vulnerability carries a CVSS 3.1 base score of 7.5 (High) with an attack vector requiring network access, low complexity, no privileges, and no user interaction (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). The current EPSS score is 0.006 (0.514th percentile). It is not listed in CISA's Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. 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

Why do standard payload limits like client_max_size fail to block this attack?

The flaw relies on concatenated compressed streams where empty members yield zero decompressed output. Because output size checks and backpressure triggers rely on decompressed data output, the input bypasses these mitigations while still consuming quadratic CPU time.

Can this vulnerability impact both client and server applications?

Yes. A malicious client can block a server's event loop via crafted request bodies or WebSocket messages, and a malicious server can block an AIOHTTP client via crafted response bodies.

Are there any documented temporary workarounds?

No temporary workarounds are documented in the vulnerability report. Upgrading to aiohttp 3.14.4 is the required resolution.

Original advisory description
### Summary When decompressing a payload made up of many concatenated compressed members (gzip, deflate or zstd), each member was decoded by passing the entire remaining input to a new decompressor, resulting in quadratic CPU time. Empty members produce no output, so `client_max_size` and output backpressure did not limit the work. ### Impact An attacker could block the event loop of a server with a specially crafted compressed request body or WebSocket message. A malicious server could do the same to a client. --- Patch: https://github.com/aio-libs/aiohttp/commit/d925a80539ffd227da1d93ab4a5bff123cc777db

References

Source records: GHSA-h4cc-hm5h-fmm9, PYSEC-2026-4399 (OSV.dev) · EPSS by FIRST, 2026-11-26.