AIOHTTP: Event loop stall in add_domain() wildcard matching
Published 16 Nov 2026 · Updated 16 Nov 2026
Is your project on an affected aiohttp?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <3.14.4
- Fixed in
- 3.14.4
pip install 'aiohttp>=3.14.4'Details
Summary
Application.add_domain() compiled each * in a host mask to [^:]*. With two or more wildcards in a mask, matching a long Host header that does not match the mask took polynomial time on the event loop.
Impact
An attacker could stall a server that registers a domain mask with more than one wildcard by sending requests with a long Host header.
Workaround
Use at most one * in a domain mask.
---
Patch: https://github.com/aio-libs/aiohttp/commit/c6ac0e44c3c573ff9616f4a6a532992538b31e43
Is GHSA-jm3w-gw2p-xjfj in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected aiohttp, and gives you the command that fixes it.
More advisories for aiohttp
- MediumCVE-2026-128125AIOHTTP: Unbounded cookie storage in client CookieJar · 16 Nov 2026
- HighCVE-2026-128126AIOHTTP: Too many URL-encoded form fields block the event loop · 16 Nov 2026
- HighCVE-2026-128127AIOHTTP: Base64 multipart parts bypass client_max_size · 16 Nov 2026
- HighCVE-2026-128128AIOHTTP: WebSocket max_msg_size bypass via integer overflow · 16 Nov 2026
- HighCVE-2026-128129AIOHTTP: Unbounded buffering of data received during an upgrade request · 16 Nov 2026
- HighCVE-2026-128130AIOHTTP: Pure-Python parser request replay and buffer growth behind a declined upgrade · 16 Nov 2026
References
- Linkgithub.com/aio-libs/aiohttp/security/advisories/GHSA-jm3w-gw2p-xjfj
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-128124
- Linkgithub.com/aio-libs/aiohttp/pull/13943
- Linkgithub.com/aio-libs/aiohttp/pull/13945
- Linkgithub.com/aio-libs/aiohttp/commit/766b882820da0651c84090e366a3b024b4a263c9
- Linkgithub.com/aio-libs/aiohttp/commit/c6ac0e44c3c573ff9616f4a6a532992538b31e43
- Packagegithub.com/aio-libs/aiohttp
- Linkgithub.com/aio-libs/aiohttp/releases/tag/v3.14.4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.