All vulnerabilities

PyPI

CVE-2026-128124

AIOHTTP: Event loop stall in add_domain() wildcard matching

Severity
High
Published
16 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.14.4
Exploit chance
0.7% in the next 30 daysHigher than 54% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Regular expression denial of service (ReDoS) (CWE-1333)
Also known as
GHSA-jm3w-gw2p-xjfj, PYSEC-2026-4391
Sources
OSV.dev and GitHub

Description

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.

An attacker could stall a server that registers a domain mask with more than one wildcard by sending requests with a long Host header.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Use at most one * in a domain mask.

Patch: https://github.com/aio-libs/aiohttp/commit/c6ac0e44c3c573ff9616f4a6a532992538b31e43

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
aiohttpPyPI · osv:PyPI:aiohttp
  • Every version before 3.14.4

About aiohttp

Weekly downloads (PyPI)
133,681,616PyPI Stats, 24 Nov 2026

References