CVE-2021-21330
CVE-2021-21330 — Open redirect vulnerability in aiohttp
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
2%
chance of exploitation in 30 days
CVSS base
3.1
LOW
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 3.1 | CVSS 3.1 | LOW | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-601
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /server.
References
8 on the record
- github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg
x_refsource_CONFIRM
- github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b
x_refsource_MISC
- github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25
x_refsource_MISC
- pypi.org/project/aiohttp/
x_refsource_MISC
- www.debian.org/security/2021/dsa-4864
vendor-advisory, x_refsource_DEBIAN
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/
vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/
vendor-advisory, x_refsource_FEDORA
- security.gentoo.org/glsa/202208-19
vendor-advisory, x_refsource_GENTOO
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-38000 Google Chromium Intents Improper Input Validation VulnerabilityCVSS 6.1 · CISA KEV
- CVE-2012-0518 Oracle Fusion Middleware Unspecified VulnerabilityCVSS 4.7 · CISA KEV
- CVE-2026-8323 Open Redirect in Armiya Information Technologies' Access Control SystemCVSS 9.3
- CVE-2025-4123 A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirectCVSS 6.1
- CVE-2026-1339 Open redirect vulnerability - UCMDB/Operations Bridge ManagerCVSS 5.4
- CVE-2018-11784 When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a redirect to a…CVSS 4.3
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.