CVE-2026-34518: AIOHTTP Cookie and Proxy-Authorization Header Leak on Cross-Origin Redirects

aiohttp Updated 02 Apr 2026

Summary

01/04/2026
Yes i
Low
2.7

CVE-2026-34518: AIOHTTP leaks Cookie and Proxy-Authorization headers on cross-origin redirect. Affects aiohttp versions < 3.13.4. Fixed in 3.13.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

AIOHTTP is a popular asynchronous HTTP client/server framework for Python, designed to handle both client and server-side web applications. It provides a simple interface for making HTTP requests and handling responses, making it a go-to choice for developers building web applications. However, a recent vulnerability has been identified that affects how AIOHTTP manages sensitive headers during cross-origin redirects, potentially exposing sensitive information.

Vulnerability Detail

The vulnerability arises from AIOHTTP's handling of HTTP redirects to different origins. While it correctly drops the Authorization header, it inadvertently retains the Cookie and Proxy-Authorization headers. This oversight can lead to sensitive information being leaked to unintended parties when a redirect occurs, posing a security risk to applications that rely on AIOHTTP for HTTP requests.

How To Fix

Latest published version: 3.14.5 as of 22 Oct 2026

pip install --upgrade "aiohttp==3.14.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.13.4

This is the first release that contains the fix.

pip install --upgrade "aiohttp==3.13.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can manually strip the Cookie and Proxy-Authorization headers before making requests that may follow redirects to different origins. This can be done by modifying your request code to exclude these headers when necessary.

Conclusion

The CVE-2026-34518 vulnerability in AIOHTTP poses a risk of leaking sensitive information through Cookie and Proxy-Authorization headers during cross-origin redirects. It is crucial for developers using AIOHTTP to update to the latest version to safeguard their applications against potential data exposure.

See every vulnerability recorded for aiohttp →

Share this vulnerability

FAQ

CVE-2026-34518 is a vulnerability in the AIOHTTP library that allows sensitive Cookie and Proxy-Authorization headers to be leaked during cross-origin redirects.

If your application uses AIOHTTP and follows redirects to different origins, sensitive information in the Cookie and Proxy-Authorization headers may be exposed to unintended parties.

You should update to version 3.13.4 or later as soon as possible to mitigate the risk associated with this vulnerability.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check if your application is affected by visiting the Vulert playground without any signup.

The CVSS score of this vulnerability is 2.7, indicating a low severity level.

Related vulnerabilities

Recent vulnerabilities recorded for aiohttp.

How To Fix

Latest published version: 3.14.5 as of 22 Oct 2026

pip install --upgrade "aiohttp==3.14.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.13.4

This is the first release that contains the fix.

pip install --upgrade "aiohttp==3.13.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback