aiohttp: Host-Only Cookies Become Domain Cookies After CookieJar Persistence
Description
Published to the GitHub Advisory Database
Jun 15, 2026
Reviewed
Jun 15, 2026
Last updated
Jun 15, 2026
Summary
Host-only cookies that are saved with
CookieJar.save()and then restored later withCookieJar.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: aio-libs/aiohttp@a329a7a
References