CVE-2022-21712 | Cookie and header exposure in twisted

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.

Published: 2022-02-07 Last update: 2024-11-25 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-21712 is rated Moderate Risk (44.7/100): CVSS High severity, with low exploitation likelihood (EPSS 0.21%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-21712

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-11-21 0.46% 0.21% -0.25%
2 2025-11-18 0.21% 0.46% +0.25%
3 2025-06-19 0.21%

Full EPSS history (17 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-21712

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:N)
No availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2022-21712

GitHub Security Advisory for CVE-2022-21712

GHSA-92x2-jw7w-xvvx · Severity: high · Ecosystem: pip — Cookie and header exposure in twisted

OS Trackers for CVE-2022-21712

vendor priority summary link
alpine high CVE-2022-21712: 1 source package rows (py3-twisted); 7 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 7, open 0. https://security.alpinelinux.org/vuln/CVE-2022-21712
debian not yet assigned CVE-2022-21712 not yet assigned priority: Debian including 1 source packages (twisted), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2022-21712
gentoo low CVE-2022-21712: 1 GLSA(s) (202301-02), 1 atom(s) (dev-python/twisted); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-21712
redhat medium https://access.redhat.com/security/cve/CVE-2022-21712
suse high CVE-2022-21712 severity important: SUSE including 28 source package names (python-Twisted, python-Twisted-15.2.1-9.23.1, …), 53 product×package rows across 32 product lines (HPE Helion OpenStack 8, Image SLES15-SP3-BYOS-Azure, … (32 product lines)): Fixed 52, Known Not Affected 1. https://www.suse.com/security/cve/CVE-2022-21712/
ubuntu medium CVE-2022-21712 medium priority: Ubuntu including 1 source packages (twisted), 14 status rows across 14 suites (bionic, focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): released 12, needed 2. https://ubuntu.com/security/CVE-2022-21712

Affected software / configurations for CVE-2022-21712

Vendor Product Version Raw CPE
twisted twisted >= 11.1.0, < 22.1.0 cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
fedoraproject fedora 36 cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*

References for CVE-2022-21712

cvelogic Threat Intelligence