3.1low
Open redirect vulnerability in aiohttp
- Severity
- 3.1low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.72% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-v6wp-4m6f-gcjgPYSEC-2021-76
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| aio-libs aiohttp | < 3.7.4 | CVE List |
| aiohttp (PyPI) | before 3.7.4, before 2545222a3853e31ace15d87ae0e2effb7da0c96b | GitHub Advisory Database, PyPA Advisory Database |
| aiohttp aiohttp | before 3.7.4 | NVD |
| debian debian_linux | 10.0 | NVD |
| fedoraproject fedora | 33, 34 | NVD |
All scores
| GitHub_M | 3.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 3.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
This security problem has been fixed in v3.7.4. Upgrade your dependency as follows:
pip install aiohttp >= 3.7.4
Workarounds
If upgrading is not an option for you, a workaround can be to avoid using aiohttp.web_middlewares.normalize_path_middleware in your applications.
References
For more information
If you have any questions or comments about this advisory:
- Open an issue in the aiohttp repo
- Email us at wk+aio-libs-security@sydorenko.org.ua and/or andrew.svetlov+aio-libs-security@gmail.com
Credit: Jelmer Vernooij and Beast Glatisant.
NVD (es)
aiohttp es un framework cliente/servidor HTTP asincrónico para asyncio y Python. En aiohttp versiones anteriores a 3.7.4, se presenta una vulnerabilidad de redireccionamiento abierto. Un enlace diseñado malicioso en un servidor web basado en aiohttp podría redireccionar el navegador a un sitio web diferente. Es causado por un error en el middleware "aiohttp.web_middlewares.normalize_path_middleware". Este problema de seguridad ha sido corregido en versión 3.7.4. Actualice su dependencia usando pip de la siguiente manera "pip install aiohttp versiones posteriores o incluyendo a 3.7.4". Si la actualización no es una opción para usted, una solución alternativa puede ser evitar el uso de "aiohttp.web_middlewares.normalize_path_middleware" en sus aplicaciones
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21330 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v6wp-4m6f-gcjg changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21330 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-76 changed 2023-11-08 | CC-BY-4.0 |