Skip to main content

aiohttp CVE-2026-128125

| EUVDEUVD-2026-125756 MEDIUM
Improperly Controlled Sequential Memory Allocation (CWE-1325)
2026-11-13 GitHub_M GHSA-5pv8-vvhc-h7jv
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Induce aiohttp client to connect to malicious server
  2. Delivery
    Return Set-Cookie with many unknown name=value pairs
  3. Exploit
    Parser creates one cookie per pair, unbounded CookieJar stores them
  4. Execution
    Repeat across redirects to amplify
  5. Impact
    Exhaust client memory/CPU and bloat outbound Cookie header

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Improperly controlled sequential memory ops
Exploitation Conditions

Exploitation requires the aiohttp client application to initiate a request to an attacker-controlled or compromised server (or one whose Set-Cookie responses the attacker can inject) while using a client session with the default CookieJar that stores cookies; the amplification depends on the client following redirects to the same domain so cookies accumulate repeatedly. Limiting factors: this is a client-side issue affecting only the vulnerable client's availability (memory/CPU) and the size of its outbound Cookie headers - it does not compromise confidentiality or integrity, grants no code execution, and only affects aiohttp versions <= 3.14.3. There is no authentication requirement on a target service, but the attacker must get the victim client to connect to the hostile endpoint, so it cannot be triggered purely remotely against a passive victim.

Impact

This is a medium-severity, client-side resource-exhaustion issue (CWE-1325), not a server-side or data-exposure flaw. The provided CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N, base 6.3) is internally consistent with the description: network reachable, no privileges or user interaction, an attack requirement present (AT:P - the aiohttp client must be induced to connect to and follow redirects to a server the attacker controls), and impact limited to availability (VA:L) with no confidentiality or integrity effect. No EPSS score and no KEV listing were supplied, and the references are the GHSA advisory, two fix PRs, two commits, and the v3.14.4 release - i.e. patch/advisory material, not exploit code - so there is no public exploit identified and no evidence of active exploitation. The vendor-priority label is 'this_month', not act_now/emergency, which matches a real-but-non-critical bug: the damage is degraded availability/memory and CPU on the client plus oversized outbound Cookie headers, not code execution or data theft. Conflicting signal to note: the input Tags include 'Information Disclosure', which contradicts the CVSS (VC:N, no confidentiality impact) and CWE-1325 - this is a denial-of-service/resource-consumption issue, so the information-disclosure framing is incorrect. Net: a genuine but moderate-priority hardening fix, worth patching on a normal cycle rather than treating as an emergency.

Exploit ScenarioDerived

An attacker who controls, compromises, or can inject responses from a server that an aiohttp client connects to returns Set-Cookie headers whose unrecognized name=value attributes are each parsed as additional cookies; because the pre-3.14.4 CookieJar imposes no limit on stored or sent cookies, the client accumulates a very large cookie set, repeated on every redirect, consuming memory and CPU. Subsequent requests to the same domain then build an excessively large Cookie header. No public exploit code was identified at time of analysis - only the advisory and patch references are available.

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

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

Alert me

AnalysisAIv1 – Nov 13, 2026

Unbounded client-side cookie accumulation in aiohttp through 3.14.3 lets a malicious or compromised server exhaust memory and CPU in connecting Python clients and inflate the Cookie header of subsequent requests to that domain. The client's Set-Cookie parser creates extra cookies out of unrecognized name=value attributes, and CookieJar imposes no cap on how many cookies are stored or emitted, so the cost repeats on every redirect within the same domain. The CVSS vector requires some attacker-dependent precondition (AT:P) and the issue is limited to availability impact on the client (A:L) with no confidentiality or integrity loss, yielding a medium-severity rating; the vendor fixed it in aiohttp 3.14.4 and no public exploit was identified at time of analysis.

RemediationAI

Upgrade to aiohttp 3.14.4, which is the exact vendor-released fix and contains the parser rewrite and the cookie-jar/header limits. The upstream changes are in pull requests https://github.com/aio-libs/aiohttp/pull/13930 and https://github.com/aio-libs/aiohttp/pull/13942, landing as commits 6963ee0befec1502b6bb7b4db6c72d044c08f4fa and b1f6c87b2bd3bd80f2b6c22ff46e11d00921e412; pinning to a commit instead of the 3.14.4 tag is not recommended because the parser change is documented as breaking and belongs with the release notes. No configuration toggle, limit setting or environment variable for capping cookie count is described in the available sources, so the complete fix is the version upgrade. As a stopgap for clients that cannot upgrade immediately, restrict session traffic to trusted hosts and avoid following redirects into untrusted or attacker-influenced domains (for example by disabling automatic redirect following and validating each Location before the next request), accepting the functional cost of breaking legitimate redirect chains; where the application controls the session, supplying a custom CookieJar implementation that bounds stored cookies and header size also reduces exposure, but it does not fix the underlying over-parsing of Set-Cookie fields. Because the parser semantics change in 3.14.4, regression-test any code that inspects session.cookie_jar contents after unusual or malformed Set-Cookie responses.

Affected VersionsENISA

aiohttp < 3.14.4

Affected Packages

pypi aiohttp fix: 3.14.4

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 is an asyncio-based HTTP client/server framework for Python, and this issue lives in its client cookie handling in aiohttp/_cookie_helpers.py plus the CookieJar store. The parser was deliberately forgiving and based on a vendored SimpleCookie-style implementation: when a Set-Cookie field contained additional name=value segments or names it did not recognize, it materialized those as separate cookies rather than treating them as attributes of a single cookie, and CookieJar enforced no ceiling on the number of cookies retained per domain or on the size of the Cookie header it later serialized. That is a resource-consumption weakness in the CWE-1325 family (improperly controlled sequential allocation) - repeated Set-Cookie fields across redirects grow the jar, drive repeated parsing/eviction work, and eventually produce an oversized outbound Cookie header. The fix moves to strict RFC 6265 behavior of one cookie per Set-Cookie field, ignores unknown attributes, ignores legacy $Path/$Domain, and applies implementation limits permitted by RFC 6265 Section 6.1: 50 cookies per response, 4096 bytes per cookie pair, 1024 bytes per attribute value and 32 attributes, with Firefox-style eviction when the jar fills. It also corrects a separate bug where a replaced cookie kept the previous cookie's expiry when the new one carried none. The 3.14.4 release notes flag the parser change as breaking, since applications that implicitly relied on extra cookies being harvested from malformed or unusual Set-Cookie fields will now see only one cookie per field.

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.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Client must be induced to connect to and follow redirects to a malicious server (AC:H mirroring AT:P), no privileges or interaction on a target, and impact is limited availability only - no confidentiality or integrity.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 21:04 EUVD
CVE Published
Nov 13, 2026 - 20:25 cve.org
MEDIUM 6.3

DescriptionCVE.org

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, Set-Cookie parsing treats unrecognized name=value attributes as additional cookies, while CookieJar does not limit the number of cookies stored or sent. A malicious server can make an aiohttp client accumulate a very large cookie set, consume memory and CPU repeatedly across redirects, and construct an excessively large Cookie header for later requests to the same domain. This issue is fixed in version 3.14.4.

Blast Radius

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

Ecosystem-wide dependent count for version 3.14.4.

Threat Intelligence Overview

EPSS Score
0.5%
Top 55% exploitable
Prevalence
High
aiohttp is an extremely popular, widely deployed Python async HTTP library
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC 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.5%
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
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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

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