Skip to content
OpenAdvisories
Low · 3.1 CVE-2021-21330 EUVD-2021-0003GHSA-v6wp-4m6f-gcjgPYSEC-2021-76

Open redirect vulnerability in aiohttp

Published Feb 26, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
aio-libs aiohttp < 3.7.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-aiohttp 3.7.4-1 —
Debian 13 python-aiohttp 3.7.4-1 —
Debian 12 python-aiohttp 3.7.4-1 —
Debian 10 python-aiohttp 3.5.1-1+deb10u1 DSA-4864-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS python-aiohttp 3.6.2-1ubuntu0.1~esm1 USN-5386-1
Ubuntu Pro 18.04 LTS python-aiohttp 3.0.1-1ubuntu0.1~esm1 USN-5386-1
ReleasePackageFixed inAdvisory
Red Hat Satellite Capsule 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 satellite +1 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 candlepin 4.0.9-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 satellite 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-activerecord-session_store 2.0.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-addressable 2.8.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-puma 5.3.2-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-rails +1 6.0.3.7-1.el7sat RHSA-2021:4702
ReleasePackageFixed inAdvisory
SLES 15 SP4 python-aiohttp 3.6.0-150100.3.9.1 SUSE-RU-2022:3275-1
SLES 15 SP4 python-typing_extensions 3.10.0.0-150400.3.2.1 SUSE-RU-2022:3275-1
SLES 15 SP3 python-aiohttp 3.6.0-150100.3.9.1 SUSE-RU-2022:3275-1
SLES 15 SP3 python-typing_extensions 3.10.0.0-150100.3.3.1 SUSE-RU-2022:3275-1
SLES 15 SP2 python-aiohttp 3.4.4-3.6.1 SUSE-SU-2021:1313-1, SUSE-RU-2022:3275-1
SLES 15 SP2 python-typing_extensions 3.10.0.0-150100.3.3.1 SUSE-RU-2022:3275-1
SLES 15 SP1 python-aiohttp 3.4.4-3.6.1 SUSE-SU-2021:1313-1, SUSE-RU-2022:3275-1
SLES 15 SP1 python-typing_extensions 3.10.0.0-150100.3.3.1 SUSE-RU-2022:3275-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-aiohttp 3.8.5-2.1 openSUSE-SU-2026:11467-1, openSUSE-SU-2024:13209-1
openSUSE Leap 15.4 python-aiohttp 3.6.0-150100.3.9.1 SUSE-RU-2022:3275-1
openSUSE Leap 15.4 python-typing_extensions 3.10.0.0-150400.3.2.1 SUSE-RU-2022:3275-1
openSUSE Leap 15.3 python-aiohttp 3.6.0-150100.3.9.1 SUSE-RU-2022:3275-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-aiohttp No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI aiohttp < 3.7.4 3.7.4 GHSA-v6wp-4m6f-gcjg

Advisories 7

References