CVE-2022-21712
JSON

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 packageVersionsReported by
twisted twisted>= 11.1.0, < 22.1.0, from 11.1.0 before 22.1.0CVE List, NVD
twisted (PyPI)from 11.1.0 before 22.1.0, before af8fe78542a6f2bf2235ccee8158d9c88d31e8e2GitHub Advisory Database, PyPA Advisory Database
debian debian_linux9.0NVD
fedoraproject fedora35, 36NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

CWE-200CWE-346

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

https://github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvxadvisory, third-party-advisory, web
https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2fix, patch, third-party-advisory, web
https://github.com/twisted/twisted/releases/tag/twisted-22.1.0release-notes, third-party-advisory, web
https://lists.debian.org/debian-lts-announce/2022/02/msg00021.htmlmailing-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-02vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2022-21712advisory
https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-27.yamlweb
https://github.com/twisted/twistedpackage
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5Kweb
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6web

Sources

SourceRecordLicence
CVE ListCVE-2022-21712 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-92x2-jw7w-xvvx changed 2024-11-25CC-BY-4.0
NVDCVE-2022-21712 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-27 changed 2023-11-08CC-BY-4.0