CVE-2026-47265: CWE-346: Origin Validation Error in aio-libs aiohttp
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to version 3.14.0, cookies set with the `cookies` parameter on requests are sent after following a cross-origin redirect. If a developer uses the `cookies` parameter on a per-request basis then sensitive data might be leaked to an attacker if they manage to control a redirect. Version 3.14.0 patches the issue. If unable to upgrade, using a `Cookie` header in the `headers` parameter is not vulnerable.
AI Analysis
Technical Summary
The vulnerability in aiohttp (an asynchronous HTTP client/server framework for Python) involves improper origin validation related to cookie handling on redirects. Specifically, when cookies are set using the `cookies` parameter on requests, these cookies are sent even after a cross-origin redirect, potentially exposing sensitive cookie data to an attacker controlling the redirect. This issue is identified as CWE-346 (Origin Validation Error). The vulnerability is fixed in aiohttp version 3.14.0. As a workaround, using the `Cookie` header directly in the `headers` parameter avoids the vulnerability.
Potential Impact
If exploited, sensitive cookie data may be leaked to an attacker who can control a redirect, potentially leading to unauthorized access or session hijacking. The vulnerability does not require user interaction or privileges and can be triggered remotely. The CVSS 4.0 base score is 6.6 (medium severity), reflecting network attack vector, low attack complexity, and high impact on confidentiality.
Mitigation Recommendations
Upgrade aiohttp to version 3.14.0 or later, where this issue is patched. If upgrading is not possible, avoid using the `cookies` parameter on requests and instead set cookies via the `Cookie` header in the `headers` parameter, which is not vulnerable. No other vendor advisory or patch information is provided, so check official aiohttp release notes for confirmation.
CVE-2026-47265: CWE-346: Origin Validation Error in aio-libs aiohttp
Description
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to version 3.14.0, cookies set with the `cookies` parameter on requests are sent after following a cross-origin redirect. If a developer uses the `cookies` parameter on a per-request basis then sensitive data might be leaked to an attacker if they manage to control a redirect. Version 3.14.0 patches the issue. If unable to upgrade, using a `Cookie` header in the `headers` parameter is not vulnerable.
CVSS v4.0
Score 6.6medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in aiohttp (an asynchronous HTTP client/server framework for Python) involves improper origin validation related to cookie handling on redirects. Specifically, when cookies are set using the `cookies` parameter on requests, these cookies are sent even after a cross-origin redirect, potentially exposing sensitive cookie data to an attacker controlling the redirect. This issue is identified as CWE-346 (Origin Validation Error). The vulnerability is fixed in aiohttp version 3.14.0. As a workaround, using the `Cookie` header directly in the `headers` parameter avoids the vulnerability.
Potential Impact
If exploited, sensitive cookie data may be leaked to an attacker who can control a redirect, potentially leading to unauthorized access or session hijacking. The vulnerability does not require user interaction or privileges and can be triggered remotely. The CVSS 4.0 base score is 6.6 (medium severity), reflecting network attack vector, low attack complexity, and high impact on confidentiality.
Mitigation Recommendations
Upgrade aiohttp to version 3.14.0 or later, where this issue is patched. If upgrading is not possible, avoid using the `cookies` parameter on requests and instead set cookies via the `Cookie` header in the `headers` parameter, which is not vulnerable. No other vendor advisory or patch information is provided, so check official aiohttp release notes for confirmation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T23:03:37.229Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1f3494e29bf47b50fa2527
Added to database: 6/2/2026, 7:52:52 PM
Last enriched: 6/2/2026, 8:04:24 PM
Last updated: 6/3/2026, 5:00:45 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.