CVE-2021-21330Aiohttp
Medium 6.1 No auth needed
Follow: this CVE · Aiohttp · Aiohttp We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Feb 26, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. In aiohttp before version 3.7.4 there is an open redirect vulnerability. A maliciously crafted link to an aiohttp-based web-server could redirect the browser to a different website. It is caused by a bug in the `aiohttp.web_middlewares.normalize_path_middleware` middleware. This security problem has been fixed in 3.7.4. Upgrade your dependency using pip as follows "pip install aiohttp >= 3.7.4". If upgrading is not an option for you, a workaround can be to avoid using `aiohttp.web_middlewares.normalize_path_middleware` in your applications.
What to do
- Apply the vendor's security update for Aiohttp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | aiohttp |
< 3.7.4 |
3.7.4 |
pip install "aiohttp>=3.7.4" |
| PyPI | aiohttp |
< 3.7.4 |
3.7.4 |
pip install "aiohttp>=3.7.4" |
Per OSV / GitHub Advisories (GHSA-v6wp-4m6f-gcjg, PYSEC-2021-76). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| aiohttp | aiohttp | < 3.7.4 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
Official advisories
- python313-aiohttp-3.14.3-1.1 on GA media · SUSE · openSUSE-SU-2026:11467-1 · Aug 6, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- pypi.org Product Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory