Open Redirecttornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Affected versions of this package are vulnerable to Open Redirect via RedirectHandler when a redirect template contains a substitution placeholder (e.g. /{0} or /{0}/b) and a request path uses three or more leading slashes (e.g. /a///example.com/). Python's urllib.parse.urlsplit follows RFC 3986 and sees an empty netloc in ///example.com, while browsers following the WHATWG URL spec skip any run of leading slashes before the host, treating the result as a protocol-level redirect to an external origin. The incomplete fix from 6.6.0 (CVE-2026-116578) did not collapse leading slash runs before comparison, allowing an attacker to craft a request that bypasses the scheme-and-netloc check and redirects a user to an arbitrary external host.
How to fix Open Redirect? Upgrade tornado to version 6.6.1 or higher.
| |
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the max_age argument of RequestHandler.set_cookie (also invoked by set_signed_cookie, set_secure_cookie, and clear_cookie). When an application passes attacker-influenced input as max_age without first converting it to an integer, an attacker can embed a semicolon-delimited string that injects additional Set-Cookie attributes - such as Domain, Path, or Secure - directly into the response header, widening the cookie's scope to parent paths or other subdomains.
Note: This is only exploitable when the application passes a value derived from untrusted input as the max_age argument without converting it to an integer first.
How to fix Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')? Upgrade tornado to version 6.6b1 or higher.
| |
Directory Traversaltornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Affected versions of this package are vulnerable to Directory Traversal via StaticFileHandler.get_version() during static URL version generation. When an application passes attacker-controlled input to RequestHandler.static_url(), an attacker can use ../ paths to make the server hash readable files outside static_path and reveal their SHA-512 digests; naming a non-terminating file such as /dev/zero blocks the event loop indefinitely.
Notes
- For the symlink route, an existing symlink inside
static_path must point to the external file; only users able to create symlinks there can establish that route. static_url() follows the symlink when hashing.
Workarounds
- Validate or allowlist paths passed to
static_url() or avoid passing request-derived values; this prevents attackers from supplying traversal paths or paths to files such as /dev/zero.
How to fix Directory Traversal? Upgrade tornado to version 6.6rc1 or higher.
| |
Allocation of Resources Without Limits or Throttlingtornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via _read_chunked_body in http1connection.py, where reads of body data that has already arrived complete without yielding control to the event loop. An attacker can send an HTTP request with a chunked body composed of many small chunks, causing the event loop to be blocked for the entire duration of the body read - potentially minutes with the default max_body_size - and preventing the server from processing other requests.
How to fix Allocation of Resources Without Limits or Throttling? Upgrade tornado to version 6.6 or higher.
| |
Inefficient Algorithmic Complexitytornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the parse_line method in tornado/httputil.py, which supports obsolete HTTP header line folding. An attacker can send HTTP requests containing folded header lines to trigger quadratic time complexity in header parsing, causing a crash.
How to fix Inefficient Algorithmic Complexity? Upgrade tornado to version 6.6 or higher.
| |
Open Redirecttornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Affected versions of this package are vulnerable to Open Redirect via RedirectHandler in tornado/web.py when the redirect target URL is constructed from user-supplied input. If a user-controlled value appears at the start of the formatted URL, an attacker can supply a value beginning with a slash to produce a protocol-relative URL (e.g. //evil.example.com), causing the browser to follow a redirect to an arbitrary external host. The fix refuses to redirect to any URL starting with // unless the configured pattern itself starts with //.
How to fix Open Redirect? Upgrade tornado to version 6.6 or higher.
| |