Live threats

All CVEs / Aiohttp

CVE-2021-21330Aiohttp

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Aiohttp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
aiohttpaiohttp< 3.7.4
debiandebian_linux10.0
fedoraprojectfedora33
fedoraprojectfedora34

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.