{"id":"CVE-2022-21712","published":"2022-02-07T00:00:00Z","modified":"2025-04-23T19:07:10Z","title":"Cookie and header exposure in twisted","vendor":"twisted","product":"twisted","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01381,"percentile":0.72814,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2","tags":["x_refsource_MISC"]},{"url":"https://github.com/twisted/twisted/releases/tag/twisted-22.1.0","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00021.html","tags":["mailing-list","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202301-02","tags":["vendor-advisory","x_transferred"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":14.56},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"twisted","affectedVersions":[{"vendor":"twisted","product":"twisted","versions":[">= 11.1.0, < 22.1.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:57:40.600666Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Twisted","vulnerableRanges":[">=11.1.0, <22.1.0"],"patched":["22.1.0"],"from":["GHSA-92x2-jw7w-xvvx","PYSEC-2022-27"],"provenance":"source"}],"summary":{"text":"The flaw is in Twisted, an event-driven networking engine for Python, specifically in its twisted.web.RedirectAgent and twisted.web.BrowserLikeRedirectAgent components. In affected versions, cookies and authorization headers are exposed when those agents follow cross-origin redirects, and an attacker who can induce such a redirect can obtain this sensitive information without authentication or user interaction over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:56Z"},"euvd":{"id":"EUVD-2022-0346","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-twisted-cve-2019-12387","parents":[{"from":"CVE-2019-12387","to":"CVE-2022-21712","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/twisted/web/client.py"],"commits":["https://github.com/twisted/twisted/commit/6c61fc4503ae39ab8ecee52d10f10ee2c371d7e2","https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2019-12855","published":"2019-06-16","fixed":"19.7.0rc1","kev":false},{"cve":"CVE-2020-10108","published":"2020-03-12","fixed":"20.3.0","kev":false},{"cve":"CVE-2020-10109","published":"2020-03-12","fixed":"20.3.0","kev":false},{"cve":"CVE-2022-21712","published":"2022-02-07","fixed":"22.1.0","kev":false},{"cve":"CVE-2022-24801","published":"2022-04-04","fixed":"22.4.0","kev":false,"link":{"from":"CVE-2022-21712","to":"CVE-2022-24801","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Twisted","fromFixed":"22.1.0","toFixed":"22.4.0","daysApart":56}]}},{"cve":"CVE-2022-39348","published":"2022-10-26","fixed":"22.10.0rc1","kev":false},{"cve":"CVE-2023-46137","published":"2023-10-25","fixed":"23.10.0rc1","kev":false}],"package":"PyPI:Twisted"}}