Skip to main content

aiohttp EUVDEUVD-2026-34007

| CVE-2026-47265 MEDIUM
Origin Validation Error (CWE-346)
2026-06-02 GitHub_M GHSA-hg6j-4rv6-33pg
6.6
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify aiohttp client using cookies parameter
  2. Delivery
    Compromise or control upstream redirect target
  3. Exploit
    Serve cross-origin 302 redirect response
  4. Execution
    aiohttp forwards cookies to attacker domain
  5. Impact
    Harvest session tokens or API credentials from incoming request logs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the target application uses aiohttp's HTTP client and passes sensitive cookies via the cookies keyword argument on individual requests - applications that use only session-level cookies via ClientSession(cookies=...) or raw Cookie headers are not affected; (2) the application has automatic redirect following enabled, which is aiohttp's default behavior; and (3) an attacker must be able to cause the upstream server to issue a cross-origin redirect - this could occur through a compromised upstream host, an open redirect vulnerability in the upstream service, or attacker control of DNS/network routing to that host. Exploitation is limited by the redirect-control prerequisite: passive network observers cannot trigger this without influencing the redirect response. Authentication to the aiohttp application itself is not required (PR:N per CVSS vector), but the attacker must control a redirect destination reachable by the vulnerable application.

Impact

The CVSS 4.0 base score is 6.6 with vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N, indicating network-reachable exploitation with no authentication or user interaction required and high confidentiality impact on the vulnerable component. However, exploitation requires an attacker-controlled or compromised redirect - the attacker cannot trigger this passively against arbitrary aiohttp clients; they must be positioned to serve or inject a cross-origin redirect in a request flow where the application uses the cookies parameter. This pre-condition meaningfully narrows real-world risk compared to a straightforward SSRF or injection class. The exploit maturity modifier is E:U (unreported/unproven), consistent with no KEV listing and no known POC. Real-world priority is moderate: high-value applications that make authenticated backend calls with per-request cookies through aiohttp are at meaningful risk if their upstream targets can be redirected, but mass exploitation is unlikely. The CVSS confidentiality impact of High is justified given that leaked cookies can directly expose session tokens or API credentials.

Exploit ScenarioDerived

An attacker compromises or controls an intermediate HTTP service that an aiohttp-based application calls, configuring it to issue a 302 redirect to an attacker-owned domain. When the application makes a request using the cookies parameter (e.g., passing a session token or API key as a per-request cookie), aiohttp follows the redirect and forwards the cookie to the attacker's domain, where the attacker logs the incoming Cookie header. No public exploit code exists at time of analysis, but the attack is mechanically straightforward for any attacker with redirect control over a target endpoint.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 02, 2026

Cross-origin cookie leakage in aiohttp prior to 3.14.0 allows sensitive per-request cookies to be forwarded to attacker-controlled domains when a redirect is followed. When application code passes cookies via the cookies parameter of an aiohttp request, those cookies are not dropped upon following a cross-origin redirect - violating the origin isolation guarantee users expect. An attacker who can influence redirect responses (e.g., via a compromised or malicious upstream server) can harvest cookie values intended only for the original origin. No public exploit identified at time of analysis; EPSS data not provided in source intelligence.

RemediationAI

Upgrade aiohttp to version 3.14.0 or later, which patches the issue by nullifying per-request cookies before following cross-origin redirects (vendor-released patch: 3.14.0; upstream fix at https://github.com/aio-libs/aiohttp/commit/f54c40851b0d6c4bbdab97ba518a223adda32478). If upgrading is not immediately possible, the documented workaround is to pass cookies as a raw Cookie header via the headers parameter rather than the cookies parameter - e.g., headers={'Cookie': 'session=abc123'} instead of cookies={'session': 'abc123'}. This workaround is effective because aiohttp's general header-stripping logic already drops custom headers on cross-origin redirects, making it safe. The trade-off is that using raw Cookie headers bypasses aiohttp's cookie serialization and jar integration, which may require minor code adjustments. Additionally, applications can disable automatic redirect following (allow_redirects=False) and handle redirects manually, though this is a more invasive change.

Affected VersionsENISA

aiohttp < 3.14.0

Affected Packages

pypi aiohttp fix: 3.14.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

aiohttp (cpe:2.3:a:aio-libs:aiohttp:*:*:*:*:*:*:*:*) is a widely used asyncio-based HTTP client/server library for Python. The vulnerability is rooted in CWE-346 (Origin Validation Error): the client's redirect-following logic in aiohttp/client.py failed to clear the per-request cookies argument when the redirect target crossed an origin boundary. Browser-standard behavior dictates that cookies scoped to an origin must not be forwarded to a different origin on redirect. The fix, introduced in commit f54c40851b0d6c4bbdab97ba518a223adda32478, adds a single assignment cookies = None in the redirect path to enforce this boundary. Notably, cookies passed via the headers parameter (as a raw Cookie: header) were already being dropped on cross-origin redirects by the general header-stripping logic - only the dedicated cookies parameter was affected.

Know when Aiohttp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.6 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U
SUSE 5.3 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jun 02, 2026 - 21:02 EUVD
CVSS changed
Jun 02, 2026 - 20:22 NVD
6.6 (MEDIUM)

DescriptionCVE.org

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to version 3.14.0, cookies set with the cookies parameter on requests are sent after following a cross-origin redirect. If a developer uses the cookies parameter on a per-request basis then sensitive data might be leaked to an attacker if they manage to control a redirect. Version 3.14.0 patches the issue. If unable to upgrade, using a Cookie header in the headers parameter is not vulnerable.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 15 pypi packages depend on aiohttp (12 direct, 3 indirect)

Ecosystem-wide dependent count for version 3.14.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +33
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-47627 HIGH POC
7.5 Nov 14

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Rated high severity (CVSS 7.5), this vul

CVE-2023-37276 HIGH POC
7.5 Jul 19

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Rated high severity (CVSS 7.5), this vul

CVE-2026-69244 HIGH POC
7.1 Aug 03

Out-of-bounds heap read in aiohttp's C HTTP response parser (versions ≤ 3.14.2) allows an attacker-controlled server to

CVE-2026-59881 MEDIUM POC
6.9 Jul 30

Uncontrolled decompression in aiohttp's WebSocket client prior to version 3.14.2 allows a malicious server to exhaust CP

CVE-2023-47641 MEDIUM POC
6.5 Nov 14

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Rated medium severity (CVSS 6.5), this v

CVE-2026-69243 MEDIUM POC
6.3 Aug 03

HTTP request smuggling in aiohttp's server-side parser allows unauthenticated remote attackers to inject and misdirect H

CVE-2022-33124 MEDIUM POC
5.5 Jun 23

AIOHTTP 3.8.1 can report a "ValueError: Invalid IPv6 URL" outcome, which can lead to a Denial of Service (DoS). Rated me

CVE-2023-49082 MEDIUM POC
5.3 Nov 29

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Rated medium severity (CVSS 5.3), this v

CVE-2023-49081 MEDIUM POC
5.3 Nov 30

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Rated medium severity (CVSS 5.3), this v

CVE-2026-128127 HIGH
8.7 Nov 13

A remote attacker can exhaust server memory or stall the event loop through aiohttp's multipart parser in versions up to

CVE-2026-128131 HIGH
8.7 Nov 13

Quadratic CPU consumption in aiohttp before 3.14.4 lets a remote attacker stall a server's asyncio event loop by sending

CVE-2026-128126 HIGH
8.7 Nov 13

In aiohttp releases prior to 3.14.4, any unauthenticated POST that reaches a handler calling Request.post() can stall th

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Public Cloud 15 SP7 Fixed
SUSE Linux Enterprise Module for Python 3 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy