{"id":"CVE-2022-21712","aliases":["CVE-2022-21712","GHSA-92x2-jw7w-xvvx","PYSEC-2022-27"],"related":[],"kind":"vulnerability","state":"published","title":"Cookie and header exposure in twisted","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nCookie and Authorization headers are leaked when following cross-origin redirects in `twited.web.client.RedirectAgent` and `twisted.web.client.BrowserLikeRedirectAgent`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"twisted es un motor de red basado en eventos escrito en Python. En las versiones afectadas, twisted expone las cookies y los encabezados de autorización cuando sigue redireccionamientos de origen cruzado. Este problema está presente en \"twited.web.RedirectAgent\" y \"twisted.web. BrowserLikeRedirectAgent\". Es recomendado a usuarios que actualicen. No hay medidas de mitigación adicionales conocidas","source":"nvd"}],"published":"2022-02-07T00:00:00.000Z","modified":"2026-06-17T04:26:49.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-346"],"affected":[{"ranges":[{"version":">= 11.1.0, < 22.1.0","status":"affected"}],"vendor":"twisted","product":"twisted","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"11.1.0","status":"affected","fixed":"22.1.0"}],"ecosystem":"PyPI","package":"twisted","purl":"pkg:pypi/twisted","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"11.1.0","fixed":"22.1.0"}],"vendor":"twisted","product":"twisted","cpe":"cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"af8fe78542a6f2bf2235ccee8158d9c88d31e8e2"},{"type":"ecosystem","introduced":"11.1.0","status":"affected","fixed":"22.1.0"}],"ecosystem":"PyPI","package":"twisted","purl":"pkg:pypi/twisted","repo":"https://github.com/twisted/twisted","source":"pysec"}],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvx","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/twisted/twisted/releases/tag/twisted-22.1.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00021.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202301-02","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21712","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-27.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/twisted/twisted","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/Twisted","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/Twisted/","tags":["package"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:57:40.600Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21712","url":"https://www.cve.org/CVERecord?id=CVE-2022-21712","licence":"CVE Terms of Use","modified":"2025-04-23T19:07:10.732Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-92x2-jw7w-xvvx","url":"https://github.com/advisories/GHSA-92x2-jw7w-xvvx","licence":"CC-BY-4.0","modified":"2024-11-25T18:48:47.216Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21712","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21712","licence":"Public domain","modified":"2026-06-17T04:26:49.110Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-27","url":"https://osv.dev/vulnerability/PYSEC-2022-27","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:09.047Z"}],"updatedAt":"2026-11-25T22:58:09.547Z","epss":{"score":0.01273,"percentile":0.70713,"date":"2026-12-01T12:00:22.000Z"}}