{"answers":{"affected":"3 open source packages ship an affected version, including aiohttp. It affects 3 products.","exploited":"There is no known exploitation of CVE-2021-21330 in the wild and no public exploit code.","fix":"Upgrade aiohttp to 3.7.4 or later.","what":"CVE-2021-21330 is a low-severity vulnerability in Debian Debian Linux, published on 26 Feb 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-21330 and fix it if it is affected.\n\nWhat it is: CVE-2021-21330 is a low-severity vulnerability in Debian Debian Linux, published on 26 Feb 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-21330 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aiohttp (PyPI): affected all versions; fixed in 3.7.4\n- aiohttp (PyPI): affected all versions; fixed in 3.7.4\n- aiohttp (PyPI): affected all versions; fixed in 3.7.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-21330/ (Markdown: https://insights.sbomify.com/CVE-2021-21330/index.md)","id":"CVE-2021-21330","markdown":"https://insights.sbomify.com/CVE-2021-21330/index.md","name":"CVE-2021-21330","record":{"aliases":["AZL-44805","DEBIAN-CVE-2021-21330","DSA-4864-1","GHSA-v6wp-4m6f-gcjg","MGASA-2021-0161","PYSEC-2021-76","SUSE-RU-2022:3275-1","SUSE-SU-2021:1313-1","UBUNTU-CVE-2021-21330","USN-5386-1","openSUSE-SU-2024:13209-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Python HTTP library","requires_auth":"none","summary":"Attackers can redirect users to malicious sites via crafted links in aiohttp web servers using the normalize_path_middleware.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"aiohttp","vendor":"aiohttp"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":3.1,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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 \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.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Public Cloud 15 SP1","SUSE:Linux Enterprise Module for Public Cloud 15 SP2","SUSE:Linux Enterprise Module for Public Cloud 15 SP3","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Server Applications 15 SP4","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Open redirect vulnerability in aiohttp","id":"CVE-2021-21330","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"open_redirect","year":"2021"},"n_packages":17,"n_references":8,"next":{"headline":"DataDog API Client contains a Local Information Disclosure Vulnerability","id":"CVE-2021-21331"},"packages":[{"ecosystem":"PyPI","fixed":["3.7.4"],"introduced":["0"],"last_affected":[],"package":"aiohttp","purl":null,"source":"GHSA-v6wp-4m6f-gcjg"},{"ecosystem":"PyPI","fixed":["3.7.4"],"introduced":["0"],"last_affected":[],"package":"aiohttp","purl":"pkg:pypi/aiohttp","source":"GHSA-v6wp-4m6f-gcjg"},{"ecosystem":"PyPI","fixed":["3.7.4"],"introduced":["0"],"last_affected":[],"package":"aiohttp","purl":"pkg:pypi/aiohttp","source":"PYSEC-2021-76"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP1","fixed":["3.4.4-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/suse/python-aiohttp\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1","source":"SUSE-SU-2021:1313-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP1","fixed":["3.6.0-150100.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/suse/python-aiohttp\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP1","fixed":["3.10.0.0-150100.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-typing_extensions","purl":"pkg:rpm/suse/python-typing_extensions\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP1","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP2","fixed":["3.4.4-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/suse/python-aiohttp\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2","source":"SUSE-SU-2021:1313-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP2","fixed":["3.6.0-150100.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/suse/python-aiohttp\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP2","fixed":["3.10.0.0-150100.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-typing_extensions","purl":"pkg:rpm/suse/python-typing_extensions\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP2","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP3","fixed":["3.6.0-150100.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/suse/python-aiohttp\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP3","fixed":["3.10.0.0-150100.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-typing_extensions","purl":"pkg:rpm/suse/python-typing_extensions\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["3.6.0-150100.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/suse/python-aiohttp\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP4","fixed":["3.10.0.0-150400.3.2.1"],"introduced":["0"],"last_affected":[],"package":"python-typing_extensions","purl":"pkg:rpm/suse/python-typing_extensions\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP4","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["3.6.0-150100.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/opensuse/python-aiohttp\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["3.6.0-150100.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/opensuse/python-aiohttp\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["3.10.0.0-150400.3.2.1"],"introduced":["0"],"last_affected":[],"package":"python-typing_extensions","purl":"pkg:rpm/opensuse/python-typing_extensions\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-RU-2022:3275-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.8.5-2.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/opensuse/python-aiohttp\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13209-1"}],"prev":{"headline":"Multi Factor Authentication Token Improperly Validated On User Login","id":"CVE-2021-21329"},"products":["aiohttp"],"published":"2021-02-26","related":[{"cvss_score":8.7,"headline":"aiohttp memory leak when middleware is enabled when requesting a resource with a non-allowed method","id":"CVE-2024-52303","kev_date_added":null,"published":"2024-11-18"},{"cvss_score":7.5,"headline":"AIOHTTP's HTTP Parser auto_decompress feature is vulnerable to zip bomb","id":"CVE-2025-69223","kev_date_added":null,"published":"2026-01-05"},{"cvss_score":7.5,"headline":"Denial of service when trying to parse malformed POST requests in aiohttp","id":"CVE-2024-30251","kev_date_added":null,"published":"2024-05-02"},{"cvss_score":7.2,"headline":"aiohttp's ClientSession is vulnerable to CRLF injection via version","id":"CVE-2023-49081","kev_date_added":null,"published":"2023-11-30"},{"cvss_score":6.9,"headline":"AIOHTTP: Uncapped memory usage possible through aiohttp allowing unlimited trailer headers","id":"CVE-2026-22815","kev_date_added":null,"published":"2026-04-01"},{"cvss_score":6.6,"headline":"AIOHTTP: HTTP/1 Pipelined Requests Queue Without Limit","id":"CVE-2026-54273","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":6.6,"headline":"AIOHTTP: Incomplete websocket frame payloads bypass memory limits","id":"CVE-2026-54274","kev_date_added":null,"published":"2026-06-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["aio-libs"]},"summary":"Attackers can redirect users to malicious sites via crafted links in aiohttp web servers using the normalize_path_middleware.","url":"https://insights.sbomify.com/CVE-2021-21330/"}