CVE-2021-21330Open redirect vulnerability in aiohttp
- 3.1LowCVSS base score
- 1.7%Exploitation in 30 daysEPSS · top 22% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 2 months later
· 2 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Low3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.7% · top 22% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.1.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIaiohttpGHSA-v6wp-4m6f-gcjg (opens in a new tab)
References
References8
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25 (opens in a new tab)x_refsource_MISCx_transferred
- https://pypi.org/project/aiohttp/ (opens in a new tab)x_refsource_MISCx_transferred
- DSA-4864 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- FEDORA-2021-673b10ed77 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-902c1b07c9 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- GLSA-202208-19 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0003 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-v6wp-4m6f-gcjg (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21330)Record last updated .