VDB

CVE-2021-21330

CVE-2021-21330 PUBLISHED CVSS 3.1 LOW

Open redirect vulnerability in aiohttp

Reported by github_m · Published February 26, 2021

aiohttp is fixed in 3.7.4 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
aiohttpPyPI3.7.4
aiohttpaiohttp3.7.4

Risk scores

CVSS 3.1
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected products

VendorProductVersions
aio-libsaiohttp< 3.7.4
PyPIaiohttp0
aio-libsaiohttp0
archpython-aiohttp0

Timeline

  • Feb 26, 2021 CVE Published
  • Feb 26, 2021 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Oct 15, 2025 CVE Updated
  • Mar 7, 2026 Distribution Patch (2 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (4 in total, the first dated here)
  • Aug 26, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-21330
vulnetix vdb fixes CVE-2021-21330

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-21330/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›