{"answers":{"affected":"3 open source packages ship an affected version, including twisted and Twisted. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42304 exists.","fix":"Upgrade twisted to a fixed version for your release line: 26.4.0 or 26.4.0rc2.","what":"CVE-2026-42304 is a high-severity denial of service vulnerability in twisted, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42304 and fix it if it is affected.\n\nWhat it is: CVE-2026-42304 is a high-severity denial of service vulnerability in twisted, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42304 exists.\n\nAffected packages and fixed versions:\n- twisted (PyPI): affected all versions; fixed in 26.4.0\n- twisted (PyPI): affected all versions; fixed in 26.4.0rc2\n- Twisted (PyPI): affected all versions; fixed in 26.4.0rc2\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-2026-42304/ (Markdown: https://insights.sbomify.com/CVE-2026-42304/index.md)","id":"CVE-2026-42304","markdown":"https://insights.sbomify.com/CVE-2026-42304/index.md","name":"CVE-2026-42304","record":{"aliases":["AZL-86751","BELL-CVE-2026-42304","CLEANSTART-2026-FF58262","CLEANSTART-2026-XG33120","DEBIAN-CVE-2026-42304","GHSA-grgv-6hw6-v9g4","OESA-2026-2367","OESA-2026-2368","OESA-2026-2369","OESA-2026-2370","OESA-2026-2488","PYSEC-2026-160","SUSE-SU-2026:22004-1","SUSE-SU-2026:2218-1","SUSE-SU-2026:2219-1","UBUNTU-CVE-2026-42304","USN-8380-1","openSUSE-SU-2026:10759-1","openSUSE-SU-2026:20862-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python networking library","requires_auth":"none","summary":"Remote attackers can cause denial of service in Twisted applications by sending crafted DNS packets that trigger resource exhaustion during name decompression.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"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:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.4.0rc2, the twisted.names module is vulnerable to a Denial of Service (DoS) attack via resource exhaustion during DNS name decompression. A remote, unauthenticated attacker can exploit this by sending a crafted TCP DNS packet containing deeply chained compression pointers. This flaw bypasses previous loop-prevention logic, causing the single-threaded Twisted reactor to hang while processing millions of recursive lookups, effectively freezing the server. This vulnerability is fixed in 26.4.0rc2.","ecosystems":["PyPI","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Twisted: Denial of Service (DoS) in twisted.names via Crafted DNS Compression Pointer Chains","id":"CVE-2026-42304","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"Dulwich has an arbitrary file write via NTFS-hostile tree entries on Windows","id":"CVE-2026-42305"},"packages":[{"ecosystem":"PyPI","fixed":["26.4.0rc2"],"introduced":["0"],"last_affected":[],"package":"Twisted","purl":null,"source":"GHSA-grgv-6hw6-v9g4"},{"ecosystem":"PyPI","fixed":["26.4.0"],"introduced":["0"],"last_affected":[],"package":"twisted","purl":"pkg:pypi/twisted","source":"PYSEC-2026-160"},{"ecosystem":"PyPI","fixed":["26.4.0rc2"],"introduced":["0"],"last_affected":[],"package":"twisted","purl":"pkg:pypi/twisted","source":"GHSA-grgv-6hw6-v9g4"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["24.10.0-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:22004-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["24.10.0-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/suse/python-Twisted\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:22004-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["26.4.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Twisted","purl":"pkg:rpm/opensuse/python-Twisted\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10759-1"}],"prev":{"headline":"Fides: Privacy Request Identity Verification Bypass Vulnerability via Duplicate Detection","id":"CVE-2026-42303"},"products":["twisted"],"published":"2026-05-13","related":[{"cvss_score":7.5,"headline":"Python Twisted trustRoot is not respected in HTTP client","id":"CVE-2014-7143","kev_date_added":null,"published":"2019-11-12"},{"cvss_score":7.4,"headline":"Improper Certificate Validation in Twisted","id":"CVE-2019-12855","kev_date_added":null,"published":"2019-06-16"},{"cvss_score":6.1,"headline":"HTML injection in HTTP redirect body","id":"CVE-2024-41810","kev_date_added":null,"published":"2024-07-29"},{"cvss_score":5.3,"headline":"twisted.web has disordered HTTP pipeline response","id":"CVE-2023-46137","kev_date_added":null,"published":"2023-10-25"},{"cvss_score":5.3,"headline":"Forced Browsing in Twisted","id":"CVE-2016-1000111","kev_date_added":null,"published":"2020-03-11"}],"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-14","vendors":["twisted"]},"summary":"Remote attackers can cause denial of service in Twisted applications by sending crafted DNS packets that trigger resource exhaustion during name decompression.","url":"https://insights.sbomify.com/CVE-2026-42304/"}