CVE-2021-21330: Open redirect vulnerability in aiohttp
Noroxi assessment
Priority: Monitor (action score 25/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.9% (FIRST EPSS); higher than 79.9% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: aio-libs aiohttp 3.7.4.
- Severity is disputed: the assigning authority (CNA) scores it 3.1, NVD 6.1.
Low priority for now. Upgrade to aio-libs aiohttp 3.7.4 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Feb 25, 2021
- Updated
- Jun 16, 2026
- EPSS
- 1.9% · 79th percentile
- CWE
- CWE-601
Report tools
Action score
25
Low priority for now.
- CVSS
- 24 / 40 · 6.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 1.9%
CNA vs NVD score
- NVD
- 6.1
- CNA · GitHub_M
- 3.1
- 3.0 point gap
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| aiohttp | aiohttp | cpe:2.3:a:aiohttp:aiohttp |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
aio-libs aiohttp
- < 3.7.4affected
Affected versions · NVD (4)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- aiohttp aiohttpbefore 3.7.4
- debian debian linux10.0
- fedoraproject fedora33
- fedoraproject fedora34
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:10 | python-aiohttp | before 3.5.1-1+deb10u1 | 3.5.1-1+deb10u1 |
| Debian:12 | python-aiohttp | before 3.7.4-1 | 3.7.4-1 |
| openSUSE:Leap 15.3 | python-aiohttp | before 3.6.0-150100.3.9.1 | 3.6.0-150100.3.9.1 |
| openSUSE:Leap 15.4 | python-typing_extensions | before 3.10.0.0-150400.3.2.1 | 3.10.0.0-150400.3.2.1 |
| openSUSE:Tumbleweed | python-aiohttp | before 3.14.3-1.1 | 3.14.3-1.1 |
| openSUSE:Tumbleweed | python-aiohttp | before 3.8.5-2.1 | 3.8.5-2.1 |
| PyPI | aiohttp | before 3.7.4 | 3.7.4 |
| Red Hat:satellite_capsule:6.10::el7 | foreman | before 0:2.5.2.17-2.el7sat | 0:2.5.2.17-2.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | python-aiohttp | before 0:3.7.4-1.el7pc | 0:3.7.4-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-ecdsa | before 0:0.13.3-2.el7pc | 0:0.13.3-2.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-pyyaml | before 0:5.4.1-1.el7pc | 0:5.4.1-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-urllib3 | before 0:1.26.5-1.el7pc | 0:1.26.5-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-django | before 0:2.2.24-1.el7pc | 0:2.2.24-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-ecdsa | before 0:0.13.3-2.el7pc | 0:0.13.3-2.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-pyyaml | before 0:5.4.1-1.el7pc | 0:5.4.1-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-urllib3 | before 0:1.26.5-1.el7pc | 0:1.26.5-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | satellite | before 0:6.10.0-3.el7sat | 0:6.10.0-3.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | satellite-capsule | before 0:6.10.0-3.el7sat | 0:6.10.0-3.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | tfm-rubygem-nokogiri | before 0:1.11.3-2.el7sat | 0:1.11.3-2.el7sat |
| Red Hat:satellite:6.10::el7 | candlepin | before 0:4.0.9-1.el7sat | 0:4.0.9-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-actionpack | before 0:6.0.3.7-1.el7sat | 0:6.0.3.7-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-activerecord-session_store | before 0:2.0.0-1.el7sat | 0:2.0.0-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-addressable | before 0:2.8.0-1.el7sat | 0:2.8.0-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-puma | before 0:5.3.2-1.el7sat | 0:5.3.2-1.el7sat |
+5
Same product
aiohttp: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-23334aiohttp.web.static(follow_symlinks=True) is vulnerable to directory traversal53Plan
- CVE-2024-52303aiohttp memory leak when middleware is enabled when requesting a resource with a non-allowed method34Monitor
- CVE-2025-69223AIOHTTP's HTTP Parser auto_decompress feature is vulnerable to zip bomb30Monitor
Published before and after this one in the same product
- Later →CVE-2022-33124Jun 23, 2022 · AIOHTTP 3.8.1 can report a "ValueError: Invalid IPv6 URL" outcome, which can lead to a Denial of Service (DoS).22Monitor
- Later →CVE-2023-37276Jul 19, 2023 · aiohttp vulnerable to HTTP request smuggling30Monitor
- Later →CVE-2023-47627Nov 14, 2023 · Request smuggling in aiohttp30Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| aio-libs aiohttp | 3.7.4 · description | Vendor (CNA) |
| debian:python-aiohttp | 3.7.4-1 · Debian:12 | Package registry (OSV) |
| opensuse:python-aiohttp | 3.6.0-150100.3.9.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:python-typing_extensions | 3.10.0.0-150400.3.2.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| PyPI:aiohttp | 3.7.4 | Package registry (OSV) |
| red hat:candlepin | 0:4.0.9-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:foreman | 0:2.5.2.17-2.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-aiohttp | 0:3.7.4-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-ecdsa | 0:0.13.3-2.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-pyyaml | 0:5.4.1-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python3-ecdsa | 0:0.13.3-2.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python3-pyyaml | 0:5.4.1-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:satellite | 0:6.10.0-3.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:satellite-capsule | 0:6.10.0-3.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-actionpack | 0:6.0.3.7-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-activerecord-session_store | 0:2.0.0-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-nokogiri | 0:1.11.3-2.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| suse:python-aiohttp | 3.6.0-150100.3.9.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | Package registry (OSV) |
| suse:python-typing_extensions | 3.10.0.0-150100.3.3.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- none
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- github.com/aio-libs/aiohttp/commit/2545222a3853e31ace15d87ae0e2effb7da0c96b
- github.com/aio-libs/aiohttp/security/advisories/GHSA-v6wp-4m6f-gcjg
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU7ENI54JNEK3PHEFGCE46DGMFNTVU6L/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JN3V7CZJRT4QFCVXB6LDPCJH7NAOFCA5/
- pypi.org/project/aiohttp/
- security.gentoo.org/glsa/202208-19
- www.debian.org/security/2021/dsa-4864
Vendor advisories and official records. Exploit/PoC links are deliberately left out.