Executive brief
AIOHTTP is a popular Python library used for building web servers and clients. A security flaw in how it handles saved cookie files could allow an attacker to execute malicious code on a system if they can trick the application into loading a specially crafted file. While this requires significant access to the system, it could lead to a full compromise of the application and its data.
Technical details
A deserialization vulnerability (CWE-502) exists in the `CookieJar.load()` function of the aiohttp library. The root cause is the unsafe processing of untrusted data during the loading of cookie files, which can be leveraged to achieve arbitrary code execution. Exploitation requires a local attacker with high privileges to provide a malicious file and requires user interaction (triggering the load). The vulnerability is patched in version 3.14.0.
Affected products
- aio-libs aiohttp < 3.14.0
Timeline
- 2026-06-02: disclosed
- 2026-06-03: advisory
- 2026-06-03: patched