SecurityContext

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

IdName
CWE-601URL Redirection to Untrusted Site

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96bPatch, Third Party Advisory
https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25Third Party Advisory
https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjgThird Party Advisory
https://pypi.org/project/aiohttp/Product, Third Party Advisory
https://security.gentoo.org/glsa/202208-19Third Party Advisory
https://www.debian.org/security/2021/dsa-4864Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
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

RepositoryLink kindsIndexedUrl
aio-libs/aiohttpcommit, fix, package, security_advisoryyes/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