Skip to main content
No exploitation reportedFix available

CVE-2021-21330

No exploitation reported by the sources we read.

  • Published2021-02-26
  • Fixed in3.7.4
  • WeaknessCWE-601

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-02-2603:15CVE publishedNVD

Versions per branch

NVD · OSV
Aiohttp
BranchAffectedFixed in
3.7< 3.7.43.7.4
Fedoraproject fedora
BranchAffectedFixed in
33.x= 33no fix published
34.x= 34no fix published
Debian debian linux
BranchAffectedFixed in
10.0= 10.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-supersetCleanStartall versions · fixed in 2021.40.1-r0
  • apache-supersetCleanStartall versions · fixed in 2021.41.0-r0
  • candlepinRed Hat:satellite:6.10::el7all versions · fixed in 0:4.0.9-1.el7sat
  • foremanRed Hat:satellite:6.10::el7all versions · fixed in 0:2.5.2.17-2.el7sat
  • foremanRed Hat:satellite_capsule:6.10::el7all versions · fixed in 0:2.5.2.17-2.el7sat
  • python-aiohttpUbuntu:Pro:20.04:LTSall versions · fixed in 3.6.2-1ubuntu0.1~esm1
  • python-aiohttpUbuntu:Pro:18.04:LTSall versions · fixed in 3.0.1-1ubuntu0.1~esm1
  • python-aiohttpSUSE:Linux Enterprise Module for Public Cloud 15 SP4all versions · fixed in 3.6.0-150100.3.9.1

38 more package ranges on OSV.dev

Vendor advisories

  • RHSA-2021:4702 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.10 Release

Full record on NVD

Fix

  1. Update Aiohttp to 3.7.4
  2. Vendor fix Red Hat Product Security RHSA-2021:4702 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.13.1known since 2026-10-23
  • NVDCVSS 3.16.1read 2026-10-23
  • NVDCVSS 2.05.8read 2026-10-23
  • CNAweakness (CWE)CWE-601known since 2026-10-23
  • NVDweakness (CWE)CWE-601read 2026-10-23
  • FIRST EPSSEPSS score1.7 %2026-11-15
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryLOW2021-02-26

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2021-02-26
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-v6wp-4m6f-gcjg

Frequently asked questions

What is 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.

Is CVE-2021-21330 actively exploited?

Active exploitation of CVE-2021-21330 has not been confirmed. Its EPSS score was 1.7% on 2026-11-15, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-21330?

CVE-2021-21330 has a CVSS v3 base score of 6.1 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running aiohttp? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record