HIGH · CVSS 3.1 7.5 EPSS 0.8% · 55th percentile CWE-1333

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

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

Source records: GHSA-jm3w-gw2p-xjfj, PYSEC-2026-4391 (OSV.dev) · EPSS by FIRST, 2026-11-26.