CVE-2021-21330: Open redirect vulnerability in aiohttp
Vulnerability summary
CVE-2021-21330 is a medium (CVSS 6.1) URL Redirection to Untrusted Site vulnerability in aio-libs aiohttp. EPSS estimates a 1.91% chance of exploitation in the next 30 days, higher than 79.7% of scored vulnerabilities.
Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 26-02-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 5 sources · 3 versions- CVE.orgCNA3.1LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · PypiEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.91%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.91% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Suse8 products
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP1< 3.6.0-150100.3.9.1 | < 3.4.4-3.6.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP2< 3.6.0-150100.3.9.1 | < 3.4.4-3.6.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP3< 3.6.0-150100.3.9.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP4< 3.6.0-150100.3.9.1
- python-typing_extensions&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP1< 3.10.0.0-150100.3.3.1
Opensuse4 products
- python-aiohttp&distro=openSUSE Leap 15.3< 3.6.0-150100.3.9.1
- python-aiohttp&distro=openSUSE Leap 15.4< 3.6.0-150100.3.9.1
- python-aiohttp&distro=openSUSE Tumbleweed< 3.8.5-2.1
- python-typing_extensions&distro=openSUSE Leap 15.4< 3.10.0.0-150400.3.2.1
Debian2 products
- python-aiohttp< 3.5.1-1+deb10u1 | < 3.7.4-1
- debian_linuxEOL10.0
Aio-libs1 product
- aiohttp< 3.7.4
Aiohttp1 product
- aiohttp< 3.7.4
Fedoraproject1 product
- fedoraEOL33 | 34
Mageia1 product
- python-aiohttp< 3.7.4-1.mga8
PyPI1 product
- aiohttp< 2545222a3853e31ace15d87ae0e2effb7da0c96b | < 3.7.4
Ubuntu1 product
- python-aiohttp< 3.0.1-1ubuntu0.1~esm1 | < 3.6.2-1ubuntu0.1~esm1
9 vendors · 20 products
References
31 links- github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjgX Refsource CONFIRMAdvisoryWEBREPORTThird Party Advisory
- github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96bX Refsource MISCWEBFIXREPORTPatchThird Party Advisory
- www.debian.org/security/2021/dsa-4864Vendor AdvisoryX Refsource DEBIANWEBAdvisoryThird Party Advisory
Show all 31 references
- github.com/aio-libs/aiohttpPACKAGE