# CVE-2022-21712: Cookie and header exposure in twisted

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Published: 2022-02-07T00:00:00.000Z
- Modified: 2026-06-17T04:26:49.110Z
- Also known as: GHSA-92x2-jw7w-xvvx, PYSEC-2022-27
- Weaknesses: CWE-200, CWE-346
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- twisted twisted: >= 11.1.0, < 22.1.0; from 11.1.0 before 22.1.0
- twisted (PyPI): from 11.1.0 before 22.1.0; before af8fe78542a6f2bf2235ccee8158d9c88d31e8e2
- debian debian_linux: 9.0
- fedoraproject fedora: 35; 36

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvx> (advisory, third-party-advisory, web)
- <https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2> (fix, patch, third-party-advisory, web)
- <https://github.com/twisted/twisted/releases/tag/twisted-22.1.0> (release-notes, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/02/msg00021.html> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202301-02> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21712> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-27.yaml> (web)
- <https://github.com/twisted/twisted> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6> (web)
- <https://pypi.org/project/Twisted> (web)
- <https://pypi.org/project/Twisted/> (package)

## Sources

- CVE List: [CVE-2022-21712](https://www.cve.org/CVERecord?id=CVE-2022-21712), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-92x2-jw7w-xvvx](https://github.com/advisories/GHSA-92x2-jw7w-xvvx), CC-BY-4.0, modified 2024-11-25
- NVD: [CVE-2022-21712](https://nvd.nist.gov/vuln/detail/CVE-2022-21712), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-27](https://osv.dev/vulnerability/PYSEC-2022-27), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-21712 · Whole record: https://cve.day/CVE-2022-21712.json · Rebuilt by cve.day 2026-11-25T22:58:09.547Z
