CVE-2021-21330
published low CVSS 3.1 · 3.1Open redirect vulnerability in aiohttp
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| aio-libs | — | aiohttp< 3.7.4 | Affected | Not stated | GitHub_M |
| Debian | buster | python-aiohttp | Advisory build | 3.5.1-1+deb10u1 | DSA-4864-1 |
| SUSE / openSUSE | SLE-15-SP1 | python-aiohttp-docaarch64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| Ubuntu | bionic | python-aiohttp | Advisory build | 3.0.1-1ubuntu0.1~esm1 | USN-5386-1 |
| SUSE / openSUSE | SLE-15-SP1 | python-aiohttp-docppc64le | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP1 | python-aiohttp-docs390x | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP1 | python-aiohttp-docx86_64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP1 | python3-aiohttpaarch64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
Show 34 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP1 | python3-aiohttpppc64le | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP1 | python3-aiohttps390x | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP1 | python3-aiohttpx86_64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python-aiohttp-docaarch64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python-aiohttp-docppc64le | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python-aiohttp-docs390x | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python-aiohttp-docx86_64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-aiohttpaarch64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-aiohttpppc64le | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-aiohttps390x | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-aiohttpx86_64 | Advisory build | 3.4.4-3.6.1 | SUSE-SU-2021:1313-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpaarch64 | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpppc64le | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttps390x | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpx86_64 | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpaarch64 | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpppc64le | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttps390x | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpx86_64 | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpaarch64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpppc64le | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttps390x | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpx86_64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttpaarch64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttpppc64le | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttps390x | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiohttpx86_64 | Advisory build | 3.14.3-1.1 | OPENSUSE-SU-2026:11467-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttpaarch64 | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttpppc64le | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttps390x | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-aiohttpx86_64 | Advisory build | 3.8.5-2.1 | OPENSUSE-SU-2024:13209-1 |
| Ubuntu | bionic | python3-aiohttp | Advisory build | 3.0.1-1ubuntu0.1~esm1 | USN-5386-1 |
| Ubuntu | focal | python-aiohttp | Advisory build | 3.6.2-1ubuntu0.1~esm1 | USN-5386-1 |
| Ubuntu | focal | python3-aiohttp | Advisory build | 3.6.2-1ubuntu0.1~esm1 | USN-5386-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| aio-libs | aiohttp | < 3.7.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-601 CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
References
8- https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25
- https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg
- FEDORA-2021-902c1b07c9 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/
- FEDORA-2021-673b10ed77 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/
- https://pypi.org/project/aiohttp/
- GLSA-202208-19 https://security.gentoo.org/glsa/202208-19
- DSA-4864 https://www.debian.org/security/2021/dsa-4864
Provider assertions
2GitHub_M · cna
Open redirect vulnerability in aiohttp
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a5c406ca516b2ae47e7e26c1dff0dc22855adbc002ce4d0a617fa6c1eab1a2cb
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record