{"id":"UBUNTU-CVE-2021-21330","details":"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 \u003e= 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.","modified":"2026-02-04T02:17:39.697236Z","published":"2021-02-26T03:15:00Z","related":["USN-5386-1"],"upstream":["CVE-2021-21330"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21330"},{"type":"REPORT","url":"https://github.com/aio-libs/aiohttp/issues/5497"},{"type":"REPORT","url":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg"},{"type":"REPORT","url":"https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25"},{"type":"REPORT","url":"https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b"},{"type":"REPORT","url":"https://pypi.org/project/aiohttp/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5386-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-21330"}],"affected":[{"package":{"name":"python-aiohttp","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-aiohttp@3.0.1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1-1ubuntu0.1~esm1"}]}],"versions":["2.2.3-1build1","2.2.3-2","2.3.6-1","3.0.1-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python3-aiohttp","binary_version":"3.0.1-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21330.json"}},{"package":{"name":"python-aiohttp","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-aiohttp@3.6.2-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.2-1ubuntu0.1~esm1"}]}],"versions":["3.5.4-1","3.5.4-1build1","3.6.1-1","3.6.2-1","3.6.2-1build1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python3-aiohttp","binary_version":"3.6.2-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21330.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}