CVE-2026-128124: AIOHTTP: Event loop stall in add_domain() wildcard matching
Published 2026-11-13 · Updated 2026-11-20 · Also known as GHSA-jm3w-gw2p-xjfj, PYSEC-2026-4391
Summary
AIOHTTP contains an event loop stall vulnerability in add_domain() wildcard matching caused by inefficient regular expression compilation. Maintainers and users of the aiohttp package should update immediately.
Who is affected
Applications using Application.add_domain() with domain masks containing two or more wildcards are vulnerable to Denial of Service (DoS). An attacker can trigger this by sending requests containing a specially crafted long Host header, resulting in polynomial time matching that stalls the event loop.
Exploitability
The vulnerability is network-accessible over the internet with low attack complexity and no privileges or user interaction required, resulting in a high base CVSS score of 7.5 for availability impact. However, the current EPSS score is 0.005 with a 0.449 percentile, and it is not listed on the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the PyPI aiohttp package to version 3.14.4 or later.
- As a workaround, use at most one wildcard (*) in a domain mask.
How to check your project
- Check project dependency files (such as requirements.txt, pyproject.toml, or setup.py) for the aiohttp package.
- Inspect application codebase for calls to Application.add_domain() using domain masks with multiple wildcards.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What causes the event loop stall in AIOHTTP?
The flaw occurs because Application.add_domain() compiles each '*' in a host mask to '[^:]*', leading to polynomial time matching on long Host headers when two or more wildcards are present.
Which software packages are affected?
The PyPI package aiohttp is affected for versions introduced prior to the fix.
What is the fixed version for this vulnerability?
The fixed version for PyPI aiohttp is 3.14.4.
Original advisory description
References
- WEB https://github.com/aio-libs/aiohttp/security/advisories/GHSA-jm3w-gw2p-xjfj
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-128124
- WEB https://github.com/aio-libs/aiohttp/pull/13943
- WEB https://github.com/aio-libs/aiohttp/pull/13945
- WEB https://github.com/aio-libs/aiohttp/commit/766b882820da0651c84090e366a3b024b4a263c9
- WEB https://github.com/aio-libs/aiohttp/commit/c6ac0e44c3c573ff9616f4a6a532992538b31e43
- PACKAGE https://github.com/aio-libs/aiohttp
- WEB https://github.com/aio-libs/aiohttp/releases/tag/v3.14.4
Source records: GHSA-jm3w-gw2p-xjfj, PYSEC-2026-4391 (OSV.dev) · EPSS by FIRST, 2026-11-26.