CVE-2022-21712: Cookie and header exposure in twisted
Impact
Cookie and Authorization headers are leaked when following cross-origin redirects in twited.web.client.RedirectAgent and twisted.web.client.BrowserLikeRedirectAgent.
Other sources
twisted is an event-driven networking engine written in Python. In affected versions twisted exposes cookies and authorization headers when following cross-origin redirects. This issue is present in the twisted.web.RedirectAgent and twisted.web.BrowserLikeRedirectAgent functions. Users are advised to upgrade. There are no known workarounds.
https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2 https://github.com/twisted/twisted/releases/tag/twisted-22.1.0 https://github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvx
— Red Hat
twisted is an event-driven networking engine written in Python. In affected versions twisted exposes cookies and authorization headers when following cross-origin redirects. This issue is present in the twited.web.RedirectAgent and twisted.web. BrowserLikeRedirectAgent functions. Users are advised to upgrade. There are no known workarounds.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/Twistedto a version that resolves this vulnerability.Fixed in 22.1.0 - Upgrade
Upgrade
redhat/twistedto a version that resolves this vulnerability.Fixed in 22.1 - Upgrade
Upgrade
alpine/py3-twistedto a version that resolves this vulnerability.Fixed in 22.1.0-r0 - Upgrade
Upgrade
debian/twistedto a version that resolves this vulnerability.Fixed in 22.1.0-1 - Upgrade
Upgrade
debian/twistedto a version that resolves this vulnerability.Fixed in 16.6.0-2+deb9u1Fixed in 18.9.0-3+deb10u1Fixed in 20.3.0-7+deb11u1Fixed in 22.1.0-1 - Upgrade
Upgrade
azurelinux/python-twistedto a version that resolves this vulnerability.Fixed in 20.3.0-2 - Upgrade
Upgrade
azurelinux/python-twistedto a version that resolves this vulnerability.Fixed in 22.2.0-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 22.1.0
Event History
Frequently Asked Questions
What is CVE-2022-21712?
CVE-2022-21712 is a vulnerability in the Twisted library where cookies and authorization headers are exposed when following cross-origin redirects.
What is the severity of CVE-2022-21712?
The severity of CVE-2022-21712 is high with a CVSS score of 7.5.
How does CVE-2022-21712 affect Twisted?
CVE-2022-21712 affects Twisted versions between 11.1.0 and 22.1.0.
How does CVE-2022-21712 impact Debian Linux?
CVE-2022-21712 impacts Debian Linux version 9.0.
How do I fix CVE-2022-21712?
To fix CVE-2022-21712, update Twisted to version 22.1.0 or higher.