MEDIUM · CVSS 3.1 5.3 EPSS 0.6% · 41th percentile CWE-1325

CVE-2026-128125: AIOHTTP: Unbounded cookie storage in client CookieJar

Published 2026-11-13 · Updated 2026-11-20 · Also known as GHSA-5pv8-vvhc-h7jv, PYSEC-2026-4392

Summary

The aiohttp library fails to impose limits on cookie storage, allowing a malicious server to cause resource exhaustion via unbounded cookie growth. Engineering teams using aiohttp should upgrade to version 3.14.4 or later to implement proper cookie storage constraints.

Who is affected

Affected deployments include any client-side application using aiohttp to manage session cookies from external servers. A malicious server can exploit this by sending excessive cookies that the client stores indefinitely, leading to high CPU and memory consumption. This issue persists across redirects and impacts subsequent requests to the same domain due to oversized cookie headers.

Exploitability

The vulnerability is reachable via network access with no privileges required and low attack complexity, posing a moderate risk. While the current EPSS score is 0.005, indicating low observed threat activity, the lack of CISA KEV listing suggests it is not currently under active exploitation by known threat actors.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI aiohttp >= 0, < 3.14.4 3.14.4 python -m pip install 'aiohttp>=3.14.4'

CVSS 3.1 vector

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

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityLow

FAQ

Does this vulnerability affect server-side aiohttp applications?

The flaw specifically concerns the client CookieJar implementation; however, if your service acts as a proxy or client to other external servers, you remain vulnerable.

Is this vulnerability actively being exploited?

There is no evidence of active exploitation in the wild, as the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) database.

What is the primary technical consequence of this bug?

The primary consequence is a denial-of-service condition caused by excessive CPU and memory usage from unbounded cookie storage and the generation of oversized HTTP headers.

Original advisory description
### Summary `Set-Cookie` parsing created additional cookies from unrecognised `name=value` attributes, and `CookieJar` had no limit on the number of cookies stored or sent. A server could make the client store a very large number of cookies and generate very large `Cookie` headers. ### Impact A malicious server could cause excessive memory and CPU use in a client, repeated on every redirect, and cause later requests to the same domain to build an excessively large `Cookie` header. --- Patch: https://github.com/aio-libs/aiohttp/commit/6963ee0befec1502b6bb7b4db6c72d044c08f4fa

References

Source records: GHSA-5pv8-vvhc-h7jv, PYSEC-2026-4392 (OSV.dev) · EPSS by FIRST, 2026-11-26.