PyPI: twisted

CVE-2016-1000111

Safety vulnerability ID: SFTY-20200311-12873

Safety legacy ID: pyup.io-38551

Twisted Web 16.4.0 includes the following three security fixes: - A bug in twisted.web.server.Site.makeSession which may lead to predictable session IDs was fixed. Session IDs are now generated securely using `os.urandom`. - twisted.web.server.Request.getSession will now, for a request sent over HTTPS, set a "Secure" cookie, preventing the secure session from being sent over plain-text HTTP. - twisted.web.twcgi.CGIScript will now not pass the "Proxy" header to CGI scripts, as a mitigation to CVE-2016-1000111.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Forced Browsing in Twisted

Advisory

Twisted Web 16.4.0 includes the following three security fixes: - A bug in twisted.web.server.Site.makeSession which may lead to predictable session IDs was fixed. Session IDs are now generated securely using `os.urandom`. - twisted.web.server.Request.getSession will now, for a request sent over HTTPS, set a "Secure" cookie, preventing the secure session from being sent over plain-text HTTP. - twisted.web.twcgi.CGIScript will now not pass the "Proxy" header to CGI scripts, as a mitigation to CVE-2016-1000111.

Affected Package

Affecting twisted package, versions<16.4.0

Also affects

---

How to Fix

Upgradetwistedto16.4.0or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more