{"answers":{"affected":"3 open source packages ship an affected version, including sqlparse.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-84305 exists.","fix":"Upgrade sqlparse to 0.6.0 or later.","what":"CVE-2026-84305 is a medium-severity denial of service vulnerability in andialbrecht sqlparse, published on 1 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-84305 and fix it if it is affected.\n\nWhat it is: CVE-2026-84305 is a medium-severity denial of service vulnerability in andialbrecht sqlparse, published on 1 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-84305 exists.\n\nAffected packages and fixed versions:\n- sqlparse (PyPI): affected all versions; fixed in 0.6.0\n- sqlparse (PyPI): affected all versions; fixed in 0.6.0\n- sqlparse (PyPI): affected all versions; fixed in 0.6.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-2026-84305/ (Markdown: https://insights.sbomify.com/CVE-2026-84305/index.md)","id":"CVE-2026-84305","markdown":"https://insights.sbomify.com/CVE-2026-84305/index.md","name":"CVE-2026-84305","record":{"aliases":["CLEANSTART-2026-JF73384","CLEANSTART-2026-UP48732","CLEANSTART-2026-WG08246","DEBIAN-CVE-2026-84305","ECHO-8e2d-935c-d158","GHSA-cfqr-cjx5-5jcm","MINI-6q58-vh7v-3vv9","MINI-8994-337c-jvx2","MINI-mpwm-6vhq-9r7j","MINI-vh4f-qm67-hmjr","MINI-vp6h-fq53-g35j","PYSEC-2026-3923","SUSE-SU-2026:23634-1","SUSE-SU-2026:3978-1","SUSE-SU-2026:4109-1","SUSE-SU-2026:4145-1","UBUNTU-CVE-2026-84305","openSUSE-SU-2026:21777-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python SQL parser","requires_auth":"none","summary":"An attacker can cause excessive CPU consumption and service delays by submitting crafted SQL inputs to the sqlparse library's reindentation feature.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"description":"sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Package Hub 15 SP7","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP7","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0","openSUSE:Leap 16.0"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption","id":"CVE-2026-84305","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":11,"n_references":3,"next":{"headline":"Filament: Multi-factor authentication (app) codes can still be used after a newer code has been used","id":"CVE-2026-84306"},"packages":[{"ecosystem":"PyPI","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"sqlparse","purl":null,"source":"GHSA-cfqr-cjx5-5jcm"},{"ecosystem":"PyPI","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"sqlparse","purl":"pkg:pypi/sqlparse","source":"GHSA-cfqr-cjx5-5jcm"},{"ecosystem":"PyPI","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"sqlparse","purl":"pkg:pypi/sqlparse","source":"PYSEC-2026-3923"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP7","fixed":["0.2.4-150100.6.14.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/suse/python-sqlparse\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP7","source":"SUSE-SU-2026:3978-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["0.4.4-150400.6.19.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/suse/python-sqlparse\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2026:4109-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP5","fixed":["0.4.4-150400.6.19.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/suse/python-sqlparse\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP5","source":"SUSE-SU-2026:4109-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP6","fixed":["0.4.4-150600.3.12.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/suse/python-sqlparse\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP6","source":"SUSE-SU-2026:4145-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP7","fixed":["0.4.4-150600.3.12.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/suse/python-sqlparse\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP7","source":"SUSE-SU-2026:4145-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["0.5.3-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/suse/python-sqlparse\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:23634-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["0.5.3-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/suse/python-sqlparse\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:23634-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["0.5.3-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"python-sqlparse","purl":"pkg:rpm/opensuse/python-sqlparse\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21777-1"}],"prev":{"headline":"gRPC-Go: Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation","id":"CVE-2026-84304"},"products":["sqlparse"],"published":"2026-09-01","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-01","vendors":["andialbrecht"]},"summary":"An attacker can cause excessive CPU consumption and service delays by submitting crafted SQL inputs to the sqlparse library's reindentation feature.","url":"https://insights.sbomify.com/CVE-2026-84305/"}