Uncaught Exception Affecting aiohttp package, versions [,3.14.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-AIOHTTP-21249796
  • published20 Oct 2026
  • disclosed6 Oct 2026
  • creditDenys Pakizh

Introduced: 6 Oct 2026

NewCVE-2026-111065  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade aiohttp to version 3.14.4 or higher.

Overview

Affected versions of this package are vulnerable to Uncaught Exception in the update_cookies method of CookieJar in aiohttp/cookiejar.py, which computes time.time() + delta_seconds from the Max-Age attribute while catching only ValueError, so a sufficiently large value raises out of cookie processing. An attacker running the server can hold client connections out of the pool, up to temporary exhaustion, by returning a Set-Cookie header with such a Max-Age, because the exception is raised after the response has been received and _request does not close the ClientResponse on that failure path, leaving the connection unreleased. This requires the client to make requests to a server the attacker controls or has compromised with cookie processing in use, and the effect is temporary, since garbage collection eventually reclaims the connections.

CVSS Base Scores

version 4.0
version 3.1