Skip to content
Heist/ feed
Back to feed
MediumFix available

python-aiohttp — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-21330

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.

Products
python-aiohttp
Affected versions
Not specified
Fixed versions
3.7.4-1
CVEs
CVE-2021-21330
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:20 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-21330

core-osv · Original source

Published 26 Feb 2021, 03:15 UTC

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.

osv:DEBIAN-CVE-2021-21330

python-aiohttp

Fixed versions: 3.7.4-1

python-aiohttp

Fixed versions: 3.7.4-1

python-aiohttp

Fixed versions: 3.7.4-1

Complete source record
{
  "id": "fe14c70ef01a15ea0f4b41c7cfee2026c91636b0b47ad2737ef5205a21a16d62",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-21330",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-21330",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-21330",
    "products": [
      {
        "name": {
          "value": "python-aiohttp",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.7.4-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-aiohttp",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.7.4-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-aiohttp",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.7.4-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-21330",
      "aliases": [
        "DEBIAN-CVE-2021-21330"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.7.4-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiohttp",
            "purl": "pkg:deb/debian/python-aiohttp?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21330.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.7.4-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiohttp",
            "purl": "pkg:deb/debian/python-aiohttp?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21330.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.7.4-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiohttp",
            "purl": "pkg:deb/debian/python-aiohttp?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21330.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:11.361581248Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-21330"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-21330"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-21330",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 420746,
  "published_at": "2021-02-26T03:15:12.84+00:00"
}