Skip to content
Fencer Vulns
high 7.5

CVE-2022-21712 json

Cookie and header exposure in twisted

published 2022-02-07 4 y ago modified 2026-06-17 4 mo ago also GHSA-92x2-jw7w-xvvx , PYSEC-2022-27 , EUVD-2022-0346

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 72%
public exploits
0
none known

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.

Patch / fix

  • pypi twisted 22.1.0
  • twisted twisted 22.1.0
  • twisted Debian 14, Debian 13, Debian 12 22.1.0-1

debian advisories DEBIAN-CVE-2022-21712

  • twisted Ubuntu 18.04 LTS 17.9.0-2ubuntu0.3
  • twisted Ubuntu 20.04 LTS 18.9.0-11ubuntu0.20.04.2
  • twisted Ubuntu 22.04 LTS 22.1.0-2ubuntu2

ubuntu advisories UBUNTU-CVE-2022-21712

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-twisted openstack 16.2, openstack 16.1 16.4.1-19.el8ost
  • python3-twisted openstack 16.2, openstack 16.1 16.4.1-19.el8ost

red hat advisories RHSA-2022:0982RHSA-2022:0992

  • python-Twisted SLE Module for Web and Scripting 12, OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 +3 more 15.2.1-9.23.1
  • python-Twisted SLE Module for Web and Scripting 12, OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 +3 more 15.2.1-9.11.1
  • python-Twisted SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +9 more 19.10.0-3.6.1

suse advisories SUSE-SU-2022:4074-1SUSE-SU-2022:0734-1SUSE-SU-2022:0499-1

  • python-Twisted openSUSE Tumbleweed 22.1.0-1.1
  • python-Twisted openSUSE Leap 15.3 19.10.0-3.6.1

opensuse advisories openSUSE-SU-2024:11841-1openSUSE-SU-2022:0499-1

  • py3-twisted Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 22.1.0-r0

alpine advisories ALPINE-CVE-2022-21712

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-twisted CBL-Mariner 2.0 22.2.0-1

azure linux advisories AZL-8505

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-21712 updated cvss 7.5

dev-python/twisted: secret exposure in cross-origin redirects

  • Red Hat Ansible Automation Platform 1.2 twisted[tls] Red Hat Ansible Automation Platform 2 twisted[tls]
    affected: no fix available
  • Red Hat Ceph Storage 3 python-twisted-core Red Hat Enterprise Linux 6 python-twisted Red Hat OpenStack Platform 13 (Queens) python-twisted
    affected: no fix planned “Out of support scope”
  • Red Hat Satellite 6 python-twisted, python2-twisted Red Hat Storage 3 python-twisted-core Red Hat Service Telemetry Framework 1.3 for RHEL 8 python-twisted
    affected: no fix planned “Will not fix”
  • Red Hat OpenStack Platform 16.1 python-twisted 16.4.1-19.el8ost, python3-twisted 16.4.1-19.el8ost
    fixed: vendor fix RHSA-2022:0982
  • Red Hat OpenStack Platform 16.2 python-twisted 16.4.1-19.el8ost, python3-twisted 16.4.1-19.el8ost
    fixed: vendor fix RHSA-2022:0992

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

1.38% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi twisted
>=11.1.0, <22.1.0
22.1.0

Affected products

  • twisted twisted

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-346 Origin Validation Error

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.