7.5high
Cookie and header exposure in twisted
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.27% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-92x2-jw7w-xvvxPYSEC-2022-27
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| twisted twisted | >= 11.1.0, < 22.1.0, from 11.1.0 before 22.1.0 | CVE List, NVD |
| twisted (PyPI) | from 11.1.0 before 22.1.0, before af8fe78542a6f2bf2235ccee8158d9c88d31e8e2 | GitHub Advisory Database, PyPA Advisory Database |
| debian debian_linux | 9.0 | NVD |
| fedoraproject fedora | 35, 36 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | 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 | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Cookie and Authorization headers are leaked when following cross-origin redirects in twited.web.client.RedirectAgent and twisted.web.client.BrowserLikeRedirectAgent.
NVD (es)
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
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21712 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-92x2-jw7w-xvvx changed 2024-11-25 | CC-BY-4.0 |
| NVD | CVE-2022-21712 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2022-27 changed 2023-11-08 | CC-BY-4.0 |