CVE-2021-21330

low
Published 2021-02-26 · Modified 2023-11-08
CVSS v3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
CVSS v2
VIR risk
2.5

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-21330

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2021-21330.html

OS impact

OSVersionStatusFixed in
arch archfixed3.7.4-1
suse slesaffected
debian debianbookwormfixed3.7.4-1
debian debianbullseyefixed3.7.4-1
debian debianforkyfixed3.7.4-1
debian debiansidfixed3.7.4-1
debian debiantrixiefixed3.7.4-1

Package impact

EcosystemPackageVulnerableFixed
python PyPIaiohttp<3.7.43.7.4
python PyPIaiohttp<2545222a3853e31ace15d87ae0e2effb7da0c96b||<3.7.42545222a3853e31ace15d87ae0e2effb7da0c96b

References

Verify integrity in audit chain (admin only). AS-IS.