PYSEC-2026-3387: Tornado: Authorization header forwarded across cross-origin redirects in SimpleAsyncHTTPClient
Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, SimpleAsyncHTTPClient shallow-copied redirected requests and removed only the Host header, leaving Authorization, authusername, authpassword, and authmode in place when a redirect changed scheme, host, or port. This issue is fixed in version 6.5.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.5.6
Event History
Frequently Asked Questions
Who is exposed to credential leakage from this issue?
Applications using Tornado SimpleAsyncHTTPClient before version 6.5.6 are exposed when they make authenticated requests that can be redirected to a different scheme, host, or port. The redirected destination may receive the request's Authorization header or configured authentication credentials.
What must an attacker be able to do to exploit it?
An attacker needs a way to cause an authenticated SimpleAsyncHTTPClient request to follow a cross-origin redirect to a destination they control or can observe. No user interaction is required, but the vulnerable request must include Authorization or the affected authentication settings.
Are unauthenticated requests affected?
The reported exposure concerns Authorization, auth_username, auth_password, and auth_mode being retained during cross-origin redirects. Requests that do not use these authentication credentials are not described as leaking credentials through this issue.
How can this be remediated?
Upgrade Tornado to version 6.5.6, which removes the affected credentials when redirects change scheme, host, or port.