CVE-2026-34518: Aiohttp Cross Origin Redirect Header Leak

During a cross-origin redirect, sensitive headers such as Cookie and Proxy-Authorization might not be properly removed. This can expose active session credentials and proxy tokens to untrusted third-party servers. Ensure that you clear all sensitive headers when the redirect target differs from the current origin.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-34518-aiohttp-cross-origin-redirect-header-leak --engine opengrep

Description

During a cross-origin redirect, sensitive headers such as Cookie and Proxy-Authorization might not be properly removed. This can expose active session credentials and proxy tokens to untrusted third-party servers. Ensure that you clear all sensitive headers when the redirect target differs from the current origin.