{"id":"UBUNTU-CVE-2022-21712","details":"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.","modified":"2026-02-04T03:44:08.008772Z","published":"2022-02-07T22:15:00Z","related":["USN-5354-1"],"upstream":["CVE-2022-21712"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-21712"},{"type":"REPORT","url":"https://github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvx"},{"type":"REPORT","url":"https://github.com/twisted/twisted/releases/tag/twisted-22.1.0"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5354-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-21712"}],"affected":[{"package":{"name":"twisted","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/twisted@13.2.0-1ubuntu1.2+esm3?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["13.0.0-1ubuntu1","13.2.0-1ubuntu1","13.2.0-1ubuntu1.2","13.2.0-1ubuntu1.2+esm1","13.2.0-1ubuntu1.2+esm2","13.2.0-1ubuntu1.2+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"python-twisted","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_version":"13.2.0-1ubuntu1.2+esm3","binary_name":"python-twisted-bin"},{"binary_name":"python-twisted-conch","binary_version":"1:13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-core","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-lore","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-mail","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-names","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-news","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-runner","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-web","binary_version":"13.2.0-1ubuntu1.2+esm3"},{"binary_name":"python-twisted-words","binary_version":"13.2.0-1ubuntu1.2+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21712.json"}},{"package":{"name":"twisted","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/twisted@16.0.0-1ubuntu0.4+esm2?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15.2.1-1ubuntu2","15.5.0-1","15.5.0-2","15.5.0-2ubuntu1","15.5.0-4","16.0.0~pre1-1","16.0.0~pre1-1ubuntu1","16.0.0~pre1-2ubuntu1","16.0.0~pre1-3","16.0.0-1","16.0.0-1ubuntu0.2","16.0.0-1ubuntu0.4","16.0.0-1ubuntu0.4+esm1","16.0.0-1ubuntu0.4+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"python-twisted","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python-twisted-bin","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python-twisted-conch","binary_version":"1:16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python-twisted-core","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python-twisted-mail","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python-twisted-names","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_version":"16.0.0-1ubuntu0.4+esm2","binary_name":"python-twisted-news"},{"binary_name":"python-twisted-runner","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python-twisted-web","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python-twisted-words","binary_version":"16.0.0-1ubuntu0.4+esm2"},{"binary_name":"python3-twisted","binary_version":"16.0.0-1ubuntu0.4+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21712.json"}},{"package":{"name":"twisted","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/twisted@17.9.0-2ubuntu0.3?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"17.9.0-2ubuntu0.3"}]}],"versions":["16.6.0-2ubuntu3","17.9.0-1","17.9.0-2","17.9.0-2ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python-twisted","binary_version":"17.9.0-2ubuntu0.3"},{"binary_version":"17.9.0-2ubuntu0.3","binary_name":"python-twisted-bin"},{"binary_name":"python-twisted-conch","binary_version":"1:17.9.0-2ubuntu0.3"},{"binary_name":"python-twisted-core","binary_version":"17.9.0-2ubuntu0.3"},{"binary_name":"python-twisted-mail","binary_version":"17.9.0-2ubuntu0.3"},{"binary_name":"python-twisted-names","binary_version":"17.9.0-2ubuntu0.3"},{"binary_name":"python-twisted-news","binary_version":"17.9.0-2ubuntu0.3"},{"binary_version":"17.9.0-2ubuntu0.3","binary_name":"python-twisted-runner"},{"binary_name":"python-twisted-web","binary_version":"17.9.0-2ubuntu0.3"},{"binary_version":"17.9.0-2ubuntu0.3","binary_name":"python-twisted-words"},{"binary_name":"python3-twisted","binary_version":"17.9.0-2ubuntu0.3"},{"binary_name":"python3-twisted-bin","binary_version":"17.9.0-2ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21712.json"}},{"package":{"name":"twisted","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/twisted@18.9.0-11ubuntu0.20.04.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.9.0-11ubuntu0.20.04.2"}]}],"versions":["18.9.0-3ubuntu1","18.9.0-5","18.9.0-6","18.9.0-6build1","18.9.0-6ubuntu1","18.9.0-8","18.9.0-11","18.9.0-11ubuntu0.20.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-twisted","binary_version":"18.9.0-11ubuntu0.20.04.2"},{"binary_name":"python3-twisted-bin","binary_version":"18.9.0-11ubuntu0.20.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21712.json"}},{"package":{"name":"twisted","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/twisted@22.1.0-2ubuntu2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.0-2ubuntu2"}]}],"versions":["20.3.0-7ubuntu1","20.3.0-7ubuntu3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-twisted","binary_version":"22.1.0-2ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21712.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}