Cookie and header exposure in twisted
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure, Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 2 fixed, 8 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200 and CWE-346.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| twisted | twisted | 11.1.0 to before 22.1.0 | 22.1.0 | Patch available | CNA |
| — | Twisted (PyPI) | 11.1.0 to before 22.1.0 | 22.1.0 | Patch available | GHSA-92x2-jw7w-xvvx |
- twisted Vendortwisted Affected 11.1.0 to before 22.1.0 Fixed in 22.1.0 Patch available CNA
- Twisted (PyPI) Vendor— Affected 11.1.0 to before 22.1.0 Fixed in 22.1.0 Patch available GHSA-92x2-jw7w-xvvx
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:* | 11.1.0 to before 22.1.0 | Vulnerable | twisted |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
- cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:* Versions 11.1.0 to before 22.1.0 Vulnerable ·twisted
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA twisted (twisted) Fixed in 22.1.0
- Fix · GHSA-92x2-jw7w-xvvx Twisted (PyPI) Fixed in 22.1.0 Advisory →
Red Hat 2 advisories
- RHSA-2022:0982 Released 2022-03-24 · Red Hat rating ImportantRed Hat OpenStack Platform 16.1 (python-twisted) security update
- Red Hat OpenStack Platform 16.1 python-twisted-16.4.1-19.el8ost, python3-twisted-16.4.1-19.el8ost
- RHSA-2022:0992 Released 2022-03-23 · Red Hat rating ImportantRed Hat OpenStack Platform 16.2 (python-twisted) security update
- Red Hat OpenStack Platform 16.2 python-twisted-16.4.1-19.el8ost, python3-twisted-16.4.1-19.el8ost
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Ceph Storage 3 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat Satellite 6 | Affected | No fix planned: Will not fix |
| Red Hat Storage 3 | Affected | No fix planned: Will not fix |
| Service Telemetry Framework 1.3 for RHEL 8 | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 16.1 | Fixed | RHSA-2022:0982 |
| Red Hat OpenStack Platform 16.2 | Fixed | RHSA-2022:0992 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21712
- 2026-10-03 Alias added: GHSA-92x2-jw7w-xvvx
References
Advisory 3
Other 9
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-27.yaml
- https://github.com/twisted/twisted
- https://lists.debian.org/debian-lts-announce/2022/02/msg00021.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6
- https://pypi.org/project/Twisted
- https://security.gentoo.org/glsa/202301-02
More Twisted vulnerabilities
- TI-2026-30612 Twisted: Denial of Service (DoS) in twisted.names via Crafted DNS Compression Pointer Chains CVSS 3.1HIGH 7.5
- TI-2022-06090 Buffer Overflow in Twisted CVSS 3.1HIGH 7.5
- TI-2024-27854 HTML injection in HTTP redirect body CVSS 3.1MEDIUM 6.1
- TI-2022-18723 Twisted vulnerable to NameVirtualHost Host header injection CVSS 3.1MEDIUM 5.4
- TI-2020-08165 In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. CVSS 3.1CRITICAL 9.8
- TI-2020-08166 In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-21712 · CVE Program
- CVE-2022-21712 · NVD
- FIRST EPSS
- GHSA-92x2-jw7w-xvvx · GitHub Advisory Database · CC BY 4.0
- CVE-2022-21712 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences