AIOHTTP is vulnerable to cross-origin redirect with per-request cookies
Description
Published by the National Vulnerability Database
Jun 2, 2026
Published to the GitHub Advisory Database
Jun 3, 2026
Reviewed
Jun 3, 2026
Last updated
Jun 3, 2026
Summary
Cookies set with the
cookiesparameter on requests are sent after following a cross-origin redirect.Impact
If a developer uses the
cookiesparameter on a per-request basis then sensitive data might be leaked to an attacker if they manage to control a redirect.Workaround
If unable to upgrade, using a
Cookieheader in theheadersparameter is not vulnerable.Patch: aio-libs/aiohttp@f54c408
References