GitHub Advisory Database
GHSA-2fqr-mr3j-6wp8
aiohttp: Host-Only Cookies Become Domain Cookies After CookieJar Persistence
Details
Summary
Host-only cookies that are saved with `CookieJar.save() and then restored later with CookieJar.load()` lose their host-only status.
Impact
Host-only cookies that have been loaded from disk may get sent to subdomains that previously should have been disallowed.
-----
Patch: https://github.com/aio-libs/aiohttp/commit/a329a7aacad5284f087af36103aff778746da0f2
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | aiohttp | All versions before 3.14.1 (fixed in 3.14.1) |
References
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-2fqr-mr3j-6wp8
- https://nvd.nist.gov/vuln/detail/CVE-2026-54279
- https://github.com/aio-libs/aiohttp/commit/a329a7aacad5284f087af36103aff778746da0f2
- https://github.com/aio-libs/aiohttp
- https://github.com/pypa/advisory-database/tree/main/vulns/aiohttp/PYSEC-2026-2112.yaml