{"answers":{"affected":"3 open source packages ship an affected version, including twisted and Twisted. It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-21712 in the wild and no public exploit code.","fix":"Upgrade twisted to 22.1.0 or later.","what":"CVE-2022-21712 is a high-severity vulnerability in Debian Debian Linux, published on 7 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-21712 and fix it if it is affected.\n\nWhat it is: CVE-2022-21712 is a high-severity vulnerability in Debian Debian Linux, published on 7 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-21712 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- twisted (PyPI): affected from 11.1.0; fixed in 22.1.0\n- twisted (PyPI): affected from 11.1.0; fixed in 22.1.0\n- Twisted (PyPI): affected from 11.1.0; fixed in 22.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-21712/ (Markdown: https://insights.sbomify.com/CVE-2022-21712/index.md)","id":"CVE-2022-21712","markdown":"https://insights.sbomify.com/CVE-2022-21712/index.md","name":"CVE-2022-21712","record":{"aliases":["AZL-8505","DEBIAN-CVE-2022-21712","GHSA-92x2-jw7w-xvvx","PYSEC-2022-27","SUSE-SU-2022:0499-1","SUSE-SU-2022:0734-1","UBUNTU-CVE-2022-21712","openSUSE-SU-2022:0499-1","openSUSE-SU-2024:11841-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python networking library","requires_auth":"none","summary":"Attackers can steal cookies and authorization headers when the Twisted library follows cross-origin redirects, potentially leading to session hijacking.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"twisted","vendor":"twisted"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["PyPI","SUSE:Enterprise Storage 7","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise Module for Package Hub 15 SP3","SUSE:Linux Enterprise Module for Server Applications 15 SP3","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Real Time 15 SP2","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cookie and header exposure in twisted","id":"CVE-2022-21712","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"information_disclosure","year":"2022"},"n_packages":23,"n_references":3,"next":{"headline":"Exposure of Sensitive Information in Grafana","id":"CVE-2022-21713"},"packages":[{"ecosystem":"PyPI","fixed":["22.1.0"],"introduced":["11.1.0"],"last_affected":[],"package":"Twisted","purl":null,"source":"GHSA-92x2-jw7w-xvvx"},{"ecosystem":"PyPI","fixed":["22.1.0"],"introduced":["11.1.0"],"last_affected":[],"package":"twisted","purl":"pkg:pypi/twisted","source":"GHSA-92x2-jw7w-xvvx"},{"ecosystem":"PyPI","fixed":["22.1.0"],"introduced":["11.1.0"],"last_affected":[],"package":"twisted","purl":"pkg:pypi/twisted","source":"PYSEC-2022-27"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["15.2.1-9.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2022:0734-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOS","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP3","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP3","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP3","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["15.2.1-9.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2022:0734-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP2","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-BCL","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCL","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Manager Proxy 4.1","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Manager%20Proxy%204.1","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Manager Retail Branch Server 4.1","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:Manager Server 4.1","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Manager%20Server%204.1","source":"SUSE-SU-2022:0499-1"},{"ecosystem":"SUSE:OpenStack Cloud 8","fixed":["15.2.1-9.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20OpenStack%20Cloud%208","source":"SUSE-SU-2022:0734-1"},{"ecosystem":"SUSE:OpenStack Cloud 9","fixed":["15.2.1-9.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20OpenStack%20Cloud%209","source":"SUSE-SU-2022:0734-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["15.2.1-9.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2022:0734-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 9","fixed":["15.2.1-9.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%209","source":"SUSE-SU-2022:0734-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["19.10.0-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/opensuse/python-Twisted\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:0499-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["22.1.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/opensuse/python-Twisted\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11841-1"}],"prev":{"headline":"Out-of-bounds Read lead to application crashes or information leakage in ELF parsing.","id":"CVE-2022-21711"},"products":["twisted"],"published":"2022-02-07","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["twisted"]},"summary":"Attackers can steal cookies and authorization headers when the Twisted library follows cross-origin redirects, potentially leading to session hijacking.","url":"https://insights.sbomify.com/CVE-2022-21712/"}