Open redirect vulnerability in aiohttp
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
aiohttpPyPI | < 3.7.4 | 3.7.4 |
Affected products
14- ghsa-coords13 versionspkg:pypi/aiohttppkg:rpm/opensuse/python-aiohttp&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/python-aiohttp&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/python-aiohttp&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-typing_extensions&distro=openSUSE%20Leap%2015.4pkg:rpm/suse/python-aiohttp&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1pkg:rpm/suse/python-aiohttp&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2pkg:rpm/suse/python-aiohttp&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3pkg:rpm/suse/python-aiohttp&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4pkg:rpm/suse/python-typing_extensions&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1pkg:rpm/suse/python-typing_extensions&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2pkg:rpm/suse/python-typing_extensions&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3pkg:rpm/suse/python-typing_extensions&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP4
< 3.7.4+ 12 more
- (no CPE)range: < 3.7.4
- (no CPE)range: < 3.6.0-150100.3.9.1
- (no CPE)range: < 3.6.0-150100.3.9.1
- (no CPE)range: < 3.8.5-2.1
- (no CPE)range: < 3.10.0.0-150400.3.2.1
- (no CPE)range: < 3.6.0-150100.3.9.1
- (no CPE)range: < 3.6.0-150100.3.9.1
- (no CPE)range: < 3.6.0-150100.3.9.1
- (no CPE)range: < 3.6.0-150100.3.9.1
- (no CPE)range: < 3.10.0.0-150100.3.3.1
- (no CPE)range: < 3.10.0.0-150100.3.3.1
- (no CPE)range: < 3.10.0.0-150100.3.3.1
- (no CPE)range: < 3.10.0.0-150400.3.2.1
Patches
Vulnerability mechanics
References
16- github.com/advisories/GHSA-v6wp-4m6f-gcjgghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/mitrevendor-advisoryx_refsource_FEDORA
- nvd.nist.gov/vuln/detail/CVE-2021-21330ghsaADVISORY
- security.gentoo.org/glsa/202208-19ghsavendor-advisoryx_refsource_GENTOOWEB
- www.debian.org/security/2021/dsa-4864ghsavendor-advisoryx_refsource_DEBIANWEB
- github.com/aio-libs/aiohttp/blob/master/CHANGES.rstghsax_refsource_MISCWEB
- github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96bghsax_refsource_MISCWEB
- github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjgghsax_refsource_CONFIRMWEB
- github.com/pypa/advisory-database/tree/main/vulns/aiohttp/PYSEC-2021-76.yamlghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6LghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6LghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5ghsaWEB
- pypi.org/project/aiohttpghsaWEB
- pypi.org/project/aiohttp/mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.