Twisted@20.3.0 vulnerabilities

An asynchronous networking framework written in Python

Direct Vulnerabilities

Known vulnerabilities in the Twisted package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')

Twisted is an event-based network programming and multi-protocol integration framework.

Affected versions of this package are vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') when sending multiple HTTP requests in one TCP packet, the twisted.web function processes the requests asynchronously without guaranteeing the response order. An attacker can manipulate the response of the second request by delaying the response to the first request when a victim launches two requests using the HTTP pipeline.

How to fix Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')?

Upgrade Twisted to version 23.10.0rc1 or higher.

[,23.10.0rc1)
  • M
HTTP Header Injection

Twisted is an event-based network programming and multi-protocol integration framework.

Affected versions of this package are vulnerable to HTTP Header Injection via the NameVirtualHost function. When the host header does not match a configured host, twisted.web.vhost.NameVirtualHost will return a NoResource resource which renders the Host header unescaped into the 404 response allowing HTML and script injection.

How to fix HTTP Header Injection?

Upgrade Twisted to version 22.10.0rc1 or higher.

[,22.10.0rc1)
  • M
HTTP Request Smuggling

Twisted is an event-based network programming and multi-protocol integration framework.

Affected versions of this package are vulnerable to HTTP Request Smuggling in the twisted.web.http module which makes non-conformant parsing and can lead to desync if requests pass through multiple HTTP parsers. Note: To be vulnerable, applications need to both use Twisted Web's HTTP server/proxy, along with some other HTTP server/proxy.

How to fix HTTP Request Smuggling?

Upgrade Twisted to version 22.4.0rc1 or higher.

[,22.4.0rc1)
  • M
Information Exposure

Twisted is an event-based network programming and multi-protocol integration framework.

Affected versions of this package are vulnerable to Information Exposure due to improper handling of sensitive data in twisted.web.client.RedirectAgent and twisted.web.client.BrowserLikeRedirectAgent which can cause cookies and authorization headers exposure when following cross-origin redirects.

How to fix Information Exposure?

Upgrade Twisted to version 22.1.0 or higher.

[11.1.0,22.1.0)