{"api_version":"1","generated_at":"2026-04-23T02:37:37+00:00","cve":"CVE-2021-21330","urls":{"html":"https://cve.report/CVE-2021-21330","api":"https://cve.report/api/cve/CVE-2021-21330.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21330","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21330"},"summary":{"title":"CVE-2021-21330","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-02-26 03:15:00","updated_at":"2023-11-22 17:09:00"},"problem_types":["CWE-601"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/","name":"FEDORA-2021-902c1b07c9","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: python-aiohttp-3.7.4-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2021/dsa-4864","name":"DSA-4864","refsource":"DEBIAN","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-4864-1 python-aiohttp","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/","name":"FEDORA-2021-902c1b07c9","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: python-aiohttp-3.7.4-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b","name":"https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Merge branch 'ghsa-v6wp-4m6f-gcjg' into master · aio-libs/aiohttp@2545222 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg","name":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Open redirect vulnerability in `aiohttp` (`normalize_path_middleware` middleware) · Advisory · aio-libs/aiohttp · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/","name":"FEDORA-2021-673b10ed77","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: python-aiohttp-3.7.4-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://pypi.org/project/aiohttp/","name":"https://pypi.org/project/aiohttp/","refsource":"MISC","tags":["Product","Third Party Advisory"],"title":"aiohttp · PyPI","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25","name":"https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25","refsource":"MISC","tags":["Third Party Advisory"],"title":"aiohttp/CHANGES.rst at master · aio-libs/aiohttp · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202208-19","name":"GLSA-202208-19","refsource":"GENTOO","tags":[],"title":"aiohttp: Open redirect vulnerability (GLSA 202208-19) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/","name":"FEDORA-2021-673b10ed77","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: python-aiohttp-3.7.4-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21330","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21330","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"21330","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"aiohttp","cpe5":"aiohttp","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21330","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"aiohttp_project","cpe5":"aiohttp","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21330","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"aiohttp_project","cpe5":"aiohttp","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21330","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21330","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21330","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21330","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-21330","qid":"174944","title":"SUSE Enterprise Linux Security Update for python-aiohttp (SUSE-SU-2021:1313-1)"},{"cve":"CVE-2021-21330","qid":"180107","title":"Debian Security Update for python-aiohttp (CVE-2021-21330)"},{"cve":"CVE-2021-21330","qid":"239895","title":"Red Hat Update for Satellite 6.10 (RHSA-2021:4702)"},{"cve":"CVE-2021-21330","qid":"281583","title":"Fedora Security Update for python (FEDORA-2021-673b10ed77)"},{"cve":"CVE-2021-21330","qid":"281584","title":"Fedora Security Update for python (FEDORA-2021-902c1b07c9)"},{"cve":"CVE-2021-21330","qid":"690101","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for aiohttp (3000acee-c45d-11eb-904f-14dae9d5a9d2)"},{"cve":"CVE-2021-21330","qid":"710591","title":"Gentoo Linux aiohttp Open redirect Vulnerability (GLSA 202208-19)"},{"cve":"CVE-2021-21330","qid":"980643","title":"Python (pip) Security Update for aiohttp (GHSA-v6wp-4m6f-gcjg)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21330","STATE":"PUBLIC","TITLE":"Open redirect vulnerability in aiohttp"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"aiohttp","version":{"version_data":[{"version_value":"< 3.7.4"}]}}]},"vendor_name":"aio-libs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.1,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-601: URL Redirection to Untrusted Site ('Open Redirect')"}]}]},"references":{"reference_data":[{"name":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg","refsource":"CONFIRM","url":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg"},{"name":"https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b","refsource":"MISC","url":"https://github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b"},{"name":"https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25","refsource":"MISC","url":"https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst#374-2021-02-25"},{"name":"https://pypi.org/project/aiohttp/","refsource":"MISC","url":"https://pypi.org/project/aiohttp/"},{"refsource":"DEBIAN","name":"DSA-4864","url":"https://www.debian.org/security/2021/dsa-4864"},{"refsource":"FEDORA","name":"FEDORA-2021-673b10ed77","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/"},{"refsource":"FEDORA","name":"FEDORA-2021-902c1b07c9","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/"},{"refsource":"GENTOO","name":"GLSA-202208-19","url":"https://security.gentoo.org/glsa/202208-19"}]},"source":{"advisory":"GHSA-v6wp-4m6f-gcjg","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-02-26 03:15:00","lastModifiedDate":"2023-11-22 17:09:00","problem_types":["CWE-601"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:aiohttp:aiohttp:*:*:*:*:*:*:*:*","versionEndExcluding":"3.7.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21330","Ordinal":"195456","Title":"CVE-2021-21330","CVE":"CVE-2021-21330","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21330","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21330","Ordinal":"2","NoteData":"2021-02-25","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21330","Ordinal":"3","NoteData":"2021-03-19","Type":"Other","Title":"Modified"}]}}}