Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-34518: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in aio-libs aiohttp

0
Low
VulnerabilityCVE-2026-34518cvecve-2026-34518cwe-200
Published: Wed Apr 01 2026 (04/01/2026, 20:15:22 UTC)
Source: CVE Database V5
Vendor/Project: aio-libs
Product: aiohttp

Description

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to version 3.13.4, when following redirects to a different origin, aiohttp drops the Authorization header, but retains the Cookie and Proxy-Authorization headers. This issue has been patched in version 3.13.4.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/02/2026, 14:40:34 UTC

Technical Analysis

CVE-2026-34518 is a vulnerability in the aiohttp library, an asynchronous HTTP client/server framework widely used in Python applications. The flaw exists in versions prior to 3.13.4 and relates to how aiohttp handles HTTP redirects across different origins. Specifically, when following a redirect to a different origin, aiohttp correctly drops the Authorization header to prevent credential leakage, but it erroneously retains the Cookie and Proxy-Authorization headers. This inconsistent behavior can expose sensitive information such as session cookies or proxy credentials to unauthorized actors if an attacker can induce a redirect to a malicious or untrusted domain. The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The CVSS 4.0 base score is 2.7, reflecting a low severity due to the limited impact scope and no requirement for authentication or user interaction. The issue was publicly disclosed and patched in version 3.13.4 of aiohttp. No known exploits are currently reported in the wild. The vulnerability primarily affects applications that rely on aiohttp for HTTP communications and perform redirects across origins, which is common in microservices, API clients, and web scraping tools. Developers and organizations should audit their aiohttp usage and upgrade to the patched version to prevent potential sensitive data leakage.

Potential Impact

The primary impact of this vulnerability is the unintended exposure of sensitive authentication information, specifically cookies and proxy authorization headers, during cross-origin HTTP redirects. This can lead to session hijacking, unauthorized access, or proxy misuse if an attacker can control or influence redirect destinations. Although the Authorization header is correctly dropped, the retention of cookies and proxy credentials still poses a confidentiality risk. The impact is somewhat limited by the need for the application to follow redirects to attacker-controlled domains and the presence of sensitive headers in requests. The vulnerability does not affect integrity or availability directly. Organizations using aiohttp in client applications that handle sensitive sessions or proxy authentication are at risk. The low CVSS score indicates the risk is not critical but should not be ignored, especially in environments with strict data protection requirements or where aiohttp is used in security-sensitive contexts.

Mitigation Recommendations

1. Upgrade aiohttp to version 3.13.4 or later, where this vulnerability is patched. 2. Review application logic to minimize or validate cross-origin redirects, especially those that could be influenced by untrusted input. 3. Implement strict Content Security Policy (CSP) and redirect validation to prevent redirection to malicious domains. 4. Avoid sending sensitive cookies or proxy authorization headers in requests that may be redirected across origins. 5. Use explicit session management and token handling mechanisms that do not rely solely on cookies or headers vulnerable to leakage. 6. Monitor network traffic for unexpected redirects or unauthorized transmission of sensitive headers. 7. Conduct security testing focusing on redirect handling and header exposure in aiohttp-based applications. These steps go beyond generic advice by focusing on redirect validation and header management specific to aiohttp's behavior.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-30T16:03:31.047Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69ce7bdce6bfc5ba1ddfe7a7

Added to database: 4/2/2026, 2:23:24 PM

Last enriched: 4/2/2026, 2:40:34 PM

Last updated: 4/3/2026, 6:00:04 AM

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses