# GHSA-JM3W-GW2P-XJFJ: AIOHTTP: Event loop stall in add\_domain() wildcard matching

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-16
- Modified: 2026-11-16

## Tracked as

- [CVE-2026-128124](https://cve.now/CVE-2026-128124.md): aiohttp denial of service in add\_domain() wildcard matching

## Affected versions

- aiohttp (PyPI): fixed in 3.14.4

## Description

### 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

## References

- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-jm3w-gw2p-xjfj
- https://nvd.nist.gov/vuln/detail/CVE-2026-128124
- https://github.com/aio-libs/aiohttp/pull/13943
- https://github.com/aio-libs/aiohttp/pull/13945
- https://github.com/aio-libs/aiohttp/commit/766b882820da0651c84090e366a3b024b4a263c9
- https://github.com/aio-libs/aiohttp/commit/c6ac0e44c3c573ff9616f4a6a532992538b31e43
- https://github.com/aio-libs/aiohttp
- https://github.com/aio-libs/aiohttp/releases/tag/v3.14.4

Page: https://cve.now/GHSA-JM3W-GW2P-XJFJ
