Advisory

GHSA-3x9g-8vmp-wqvf

Also known as: CVE-2026-49853, PYSEC-2026-3387

Summary

Tornado: Authorization header forwarded across cross-origin redirects in SimpleAsyncHTTPClient

Details

Summary

When SimpleAsyncHTTPClient follows a 3xx redirect, it shallow-copies the original HTTPRequest, rewrites the URL, decrements max_redirects, and removes only the Host header. It does not clear Authorization, auth_username, auth_password, or auth_mode when the redirect target changes origin.

As a result, credentials intended for one origin can be forwarded to a different origin when follow_redirects=True, which is the default.

Beginning in Tornado 6.5.6, SimpleAsyncHTTPClient matches the default behavior of libcurl (and therefore CurlAsyncHTTPClient): When a redirect changes the scheme, host, or port of the url, the Authorization and Cookie headers will be removed when following the redirect.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-06-15 20:20 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

tornado

PyPI · All systems

Affected

  • introduced 0, fixed 6.5.6 (ecosystem)

Fixed versions

6.5.6

Fix

  • Fixed version 6.5.6
    pip install --upgrade tornado==6.5.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences