CVE-2021-21330: aiohttp - Open Redirect
- Cve: CVE-2021-21330
- Name: aiohttp - Open Redirect
- 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.
- Impact: Attackers can redirect users to malicious sites, potentially leading to phishing or malware distribution.
- Remediation: Upgrade to version 3.7.4 or later using pip: 'pip install aiohttp >= 3.7.4'. Alternatively, avoid using normalize_path_middleware.
- Vulnerability type: open_redirect
- Requirement type: user_interaction
- Requirements: Attacker needs to craft a malicious link
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01719
- Epss percentile: 0.77934
- Assignee: [email protected]
- Published at: 2021-02-26T03:15:12Z
- Age in days: 2097
- Modified at: 2026-06-17T03:35:18Z
- Patch available: yes
- References total: 8
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21330
- Nvd status: modified
- Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-601 | URL Redirection to Untrusted Site |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| aiohttp:aiohttp | < 3.7.4 | /v1/products/aiohttp/aiohttp |
| debian:debian_linux | = 10.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 34, = 33 | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| aio-libs/aiohttp | commit, fix, package, security_advisory | yes | /v1/repositories/aio-libs/aiohttp |
Index
- Repositories: 913
- Repositories high signal: 613
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports