Packages
aiohttp 3.14.4+ and 3.14.5: Fixing CVE-2026-128126 Event-Loop Blocking and Adding Python 3.15t Wheels
Technical breakdown of aiohttp 3.14.4 and 3.14.5 (16.6K GitHub stars, Python 3.10-3.15t): patches CVE-2026-128126 (CVSS 4.0 8.7 / CVSS 3.1 7.5) quadratic MultiDict event-loop DoS and multipart base64 chunking, plus safe pinning and proxy mitigations.
8 min read
aiohttp 3.14.4+ and 3.14.5: Fixing CVE-2026-128126 Event-Loop Blocking and Adding Python 3.15t Wheels
Executive Summary
aiohttp (aiohttp on PyPI, Python >=3.10), one of Python's foundational asynchronous HTTP client and server libraries (16.6K GitHub stars, 2.6K forks), has become the center of fresh container and dependency-scanner alerts following December 1, 2026 downstream advisories for CVE-2026-128126 (GHSA-xgw8-8ccx-rmqh). Affecting all aiohttp versions prior to 3.14.4, the flaw allows a remote, unauthenticated attacker to send a URL-encoded form POST within client_max_size containing many repeated keys, triggering quadratic-time MultiDict insertion (CWE-407) that stalls the asyncio event loop.
While upstream aiohttp shipped the fix in 3.14.4 (October 5, 2026) and followed with 3.14.5 (October 10, 2026—adding CPython 3.15 and free-threaded 3.15t wheels with full PyPI provenance), downstream AI gateways and container distributions such as Minimos litellm-1.84 surfaced fresh December 1, 2026 Snyk advisories (SNYK-MINIMOSLATEST-LITELLM184-23176561). Teams running aiohttp inside Python AI proxies, webhook receivers, or ASGI/aiohttp servers should upgrade to aiohttp>=3.14.4 (preferably 3.14.5) immediately.
Confidence Assessment: High for NVD/MITRE/SUSE/Ionix/Tenable vulnerability metadata, PyPI 3.14.4/3.14.5 release dates, wheel targets, and GitHub repository statistics. Medium for exact trailing 30-day PyPI download totals, as PyPI's public snippet omits the raw monthly counter without a third-party pypistats query.
Adoption Telemetry & Version Changelog
PyPI & GitHub Telemetry (Verified December 3, 2026)
| Metric | Verified Value | Source & Verification Date |
|---|---|---|
| Package & Ecosystem | aiohttp (Python >=3.10, PyPI) |
PyPI (Dec 3, 2026) |
| Patched Versions | 3.14.4 (Oct 5, 2026) · 3.14.5 (Oct 10, 2026) |
PyPI aiohttp |
| GitHub Repository | 16.6K stars · 2.6K forks · aio-libs/aiohttp |
GitHub |
| Supported Python Versions | Python 3.10, 3.11, 3.12, 3.13, 3.14, 3.15 & 3.15t (free-threading) |
PyPI |
| Core Dependencies | multidict, yarl, frozenlist (optional aiodns for faster DNS) |
GitHub |
| Supply-Chain Provenance | Full PyPI provenance across all 161+ release files |
PyPI |
Recent Release Milestones (3.14.2 – 3.14.5)
3.14.2(July 20, 2026) &3.14.3(July 22, 2026): Maintenance releases (119release files each with full PyPI provenance).3.14.4(October 5, 2026): Security milestone (161release files with full provenance) resolvingCVE-2026-128126(GHSA-xgw8-8ccx-rmqh, PRs#13738and#13741) and the companionBodyPartReader.read_chunk()multipart base64 unbounded-read bug documented by Tenable Nessus Plugin383424.3.14.5(October 10, 2026): Expands binary wheel distribution to CPython 3.15 and CPython 3.15 free-threading (cp315t) across Linux (manylinux2014_aarch64/x86_64), macOS (universal2,arm64,x86_64), Windows (win_amd64,win_arm64,win32), iOS, and Android—all published with PyPI digital provenance.
Security Patches, Breaking Changes & Internals
CVE-2026-128126 (GHSA-xgw8-8ccx-rmqh) Technical Root Cause
Because aiohttp runs a single-threaded cooperative asyncio event loop per worker process, any CPU-bound $O(n^2)$ operation inside a request parser freezes every concurrent connection on that worker—not just the attacker's request.
According to NIST NVD, Ionix Threat Center, and SUSE Security:
- Flaw Class:
CWE-407(Inefficient Algorithmic Complexity). - Root Cause: Prior to
3.14.4,Request.post()placed no cap on the number of fields in anapplication/x-www-form-urlencodedbody. Inserting thousands of repeated keys intoMultiDictdegraded to quadratic $O(n^2)$ time directly on the event loop, even when the total payload stayed comfortably belowclient_max_size. - Scoring Discrepancy Across Databases: Note that GitHub CNA and SUSE assign
CVSS 4.0: 8.7 (High)(CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N), whereas SUSE's legacyCVSS 3.1mapping scores it7.5 (High)(CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). Both agree there is High availability impact and zero confidentiality/integrity impact, with no authentication and no user interaction required. - EPSS Context: Snyk's December 1, 2026 advisory lists an EPSS probability of
0.82%(55th percentile).
Why Event-Loop Blocking Hits AI Gateways & Async APIs Hard
Unlike multi-threaded WSGI servers where a slow request ties up a single OS thread while sibling threads continue serving traffic, aiohttp multiplexes hundreds or thousands of concurrent sockets onto a single asyncio event loop per worker process. When Request.post() spends seconds inside C-extension or Python MultiDict insertion handling thousands of duplicate form keys, the entire worker stops scheduling coroutines:
- Cross-Tenant Stall: Active SSE streams, WebSocket connections, and
/healthprobes sharing that worker freeze simultaneously until the quadratic loop completes or Kubernetes liveness probes kill the pod. - Downstream Container Lag: Even though upstream
aiohttp 3.14.4shipped on October 5, 2026, downstream distributions—such as Minimoslitellm-1.84flagged in Snyk's December 1, 2026 advisory—often lag behind upstream PyPI patch releases until base images are rebuilt. Teams cannot assume an October upstream fix is present inside third-party AI gateway containers without inspecting the locked wheel version directly.
Companion Multipart Fix (< 3.14.4) & Compression Caveats
In addition to CVE-2026-128126, Tenable flags a second pre-3.14.4 issue in BodyPartReader.read_chunk(): when processing a multipart part with Content-Transfer-Encoding: base64, the reader kept reading until chunk length became a multiple of four without enforcing a byte cap, allowing a short Content-Length or long run of whitespace to cause excessive reads.
Separately, teams running aiohttp alongside Brotli / brotlicffi should also verify their compression dependencies: as highlighted in Python Bytes, a 9.2 Critical Brotli vulnerability disclosed in October 2026 requires Brotli >= 1.2.1 or brotlicffi >= 1.2.1.0 (if unpatched, aiohttp safely falls back to gzip and deflate when Brotli packages are removed).
Safe Server Usage & Request-Size Guardrails
When upgrading to aiohttp>=3.14.4, keep client_max_size explicitly bounded on public-facing web.Application instances and avoid calling await request.post() on endpoints that only expect JSON payloads:
from aiohttp import web
async def handle_webhook(request: web.Request) -> web.Response:
if request.content_type != "application/x-www-form-urlencoded":
return web.json_response({"error": "unsupported_media_type"}, status=415)
# Protected by field-count limits in aiohttp >= 3.14.4 (PR #13738 / #13741)
form_data = await request.post()
return web.json_response({"fields_received": len(form_data)})
# Cap body size explicitly (e.g., 512 KiB) as defense in depth
app = web.Application(client_max_size=512 * 1024)
app.add_routes([web.post("/webhook", handle_webhook)])
If an upstream framework pins an older aiohttp version temporarily and you cannot bump immediately, Ionix notes there is no vendor-documented code workaround—your only interim mitigation is tightening request body size limits and rate-limiting form POST routes at a reverse proxy or WAF.
Ecosystem Comparison & Upgrade Checklist
Python Async HTTP Library Comparison (Verified December 2026)
| Package | Primary Role | Latest Security / Runtime Notes | Key Trade-Offs |
|---|---|---|---|
aiohttp (3.14.4 / 3.14.5) |
Async HTTP client + server + WebSockets | Fixes CVE-2026-128126 (3.14.4+); adds cp315t free-threading wheels (3.14.5) |
Mature server + client stack; single-threaded event loop requires strict parser bounds |
httpx |
Async/sync HTTP client (requests-like API) |
Client-only (pairs with FastAPI/Starlette/Uvicorn for server endpoints) | Cleaner client ergonomics and HTTP/2 support, but no built-in ASGI/HTTP server |
urllib3 / requests |
Synchronous HTTP client | Sync I/O; falls back to gzip/deflate if Brotli is uninstalled |
Blocks asyncio event loops unless offloaded to thread pools |
CPython 3.15 & Free-Threading (3.15t) Wheel Coverage in 3.14.5
Beyond security patching, aiohttp 3.14.5 (October 10, 2026) is an important milestone for teams testing CPython 3.15 and no-GIL free-threaded builds (cp315t). Because aiohttp relies on compiled C extensions (multidict, yarl, frozenlist, and its own HTTP parser), upgrading Python without matching ABI wheels forces source builds from sdist that fail in minimal Docker images lacking gcc and python3-dev.
According to PyPI's aiohttp release files, 3.14.5 ships prebuilt cp315 and cp315t wheels across Linux (manylinux2014_aarch64, x86_64), macOS (arm64, x86_64, universal2), Windows (win_amd64, win_arm64, win32), iOS, and Android—each published with full PyPI provenance. Coupled with PyPI's July 2026 policy rejecting late release-file uploads more than 14 days after release (Python Bytes), security teams can verify wheel provenance deterministically during CI builds.
Safe Upgrade & Pinning Checklist
- Audit Transitive Dependencies First: AI proxies and SDKs (such as
litellm,discord.py, and custom RAG ingestion workers) frequently pullaiohttptransitively. Inspect your active environment:uv pip show aiohttp - Upgrade to
3.14.5(or minimum3.14.4):uv add "aiohttp>=3.14.5,<4.0" - Verify PyPI Provenance & Wheel ABI: Confirm your lockfile pulls
aiohttp>=3.14.4wheels with PyPI provenance metadata, especially if deploying on Python 3.15 or3.15tfree-threaded runtimes. 3b. Inspect Dependency Trees & Tooling Hygiene: Runuv pip tree(orpipdeptree) to confirm no legacy library pinsaiohttp<3.14.4in your container build. If you useuvorpipin CI, Python Bytes also notes keepingpip>=26.2.2(for updatedcertifiroot CAs) anduv>=0.13.5(which includesGHSA-hq85-5cpj-mr62andrustls-webpki 0.103.16fixes) alongside patchedaiohttpwheels. - Harden Reverse Proxies: Even after patching, keep
Content-Typevalidation strict and enforce reverse-proxy body limits on/login,/token, and webhook endpoints that invokerequest.post().
Frequently Asked Questions
1. Which versions of aiohttp are vulnerable to CVE-2026-128126?
All versions of aiohttp prior to 3.14.4 are vulnerable to CVE-2026-128126 (GHSA-xgw8-8ccx-rmqh). Upgrading to 3.14.4 (released October 5, 2026) or 3.14.5 (released October 10, 2026) resolves both the quadratic MultiDict form-parsing DoS and the companion BodyPartReader.read_chunk() multipart bug.
2. Is my app affected if I only use aiohttp.ClientSession as an HTTP client?
CVE-2026-128126 specifically triggers when a server handler calls Request.post() on a URL-encoded form body. Pure outbound ClientSession callers are not exposed to inbound Request.post() payloads, though upgrading to 3.14.5 is still recommended for clean security scans and Python 3.15/3.15t support, and verify Brotli >= 1.2.1 or brotlicffi >= 1.2.1.0 if your client decompresses untrusted third-party Content-Encoding: br responses.
3. Why did CVE-2026-128126 reappear in December 1, 2026 advisories if 3.14.4 shipped in October?
Downstream container images and bundled AI packages (such as Minimos litellm-1.84, flagged in Snyk's December 1, 2026 advisory) often pin or ship older aiohttp builds until downstream maintainers rebuild and republish patched images.
4. What is the CVSS score for CVE-2026-128126?
GitHub CNA and SUSE assign a CVSS v4.0 base score of 8.7 (High), while SUSE's CVSS v3.1 mapping assigns 7.5 (High). Both reflect unauthenticated network exploitability with High availability impact.
5. Does aiohttp 3.14.5 support free-threaded Python 3.15 (3.15t)?
Yes. PyPI release files for aiohttp 3.14.5 (October 10, 2026) include prebuilt cp315-cp315t wheels across Linux, macOS, and Windows with full provenance.
Sources
- PyPI (
aiohttp) — aiohttp 3.14.4 & 3.14.5 Release Metadata & Wheels (https://pypi.org/project/aiohttp/andhttps://pypi.org/project/aiohttp/3.10.4/) — Accessed Dec 3, 2026 (3.14.4Oct 5, 2026;3.14.5Oct 10, 2026). - NIST NVD — CVE-2026-128126 Detail (
GHSA-xgw8-8ccx-rmqh) (https://nvd.nist.gov/vuln/detail/CVE-2026-128126) — Published Nov 13, 2026. - Snyk Vulnerability Database — Algorithmic Complexity in
litellm-1.84/CVE-2026-128126(https://security.snyk.io/vuln/SNYK-MINIMOSLATEST-LITELLM184-23176561) — Published Dec 1, 2026. - SUSE Security — CVE-2026-128126 Common Vulnerabilities and Exposures (
https://www.suse.com/security/cve/CVE-2026-128126.html) — Published Nov 16, 2026. - Ionix Threat Center — CVE-2026-128126: Denial of Service in AIOHTTP before 3.14.4 (
https://www.ionix.io/threat-center/cve-2026-128126/) — Published Nov 13, 2026. - Tenable Nessus — Plugin 383424:
aiohttp < 3.14.4Multiple Vulnerabilities (https://www.tenable.com/plugins/nessus/383424) — Published Nov 20, 2026. - GitHub (
aio-libs/aiohttp) — AIOHTTP Repository (https://github.com/aio-libs/aiohttp) — Accessed Dec 3, 2026 (16.6Kstars,2.6Kforks). - Python Bytes — Python 3.15, PyPI Provenance & Security Releases (
https://pythonbytes.fm/episodes/rss) — Accessed Dec 3, 2026.