GHSA-27jp-wm6q-gp25Medium▾ Sunlitsqlparse: formatting list of tuples leads to denial of service
▾ Sunlit zone — Low / medium · no exploitation signal
impact 27.5 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
The below gist hangs while attempting to format a long list of tuples.
This was found while drafting a regression test for Dja ngo 5.2's composite primary key feature, which allows querying composite fields with tuples.
sqlparse < 0.5.4Upgrade to a patched release:
sqlparse 0.5.4Connected by shared product, vendor, weakness, or advisory.
CVE-2026-84305Mediumsqlparse is a non-validating SQL parser module for Python
CVE-2026-59894Mediumsqlparse is a non-validating SQL parser module for Python
CVE-2026-54284High· 7.5sqlparse is a non-validating SQL parser module for Python
CVE-2026-59893High· 7.5sqlparse is a non-validating SQL parser module for Python
CVE-2021-32839High· 7.5StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service)
CVE-2024-4340High· 7.5sqlparse parsing heavily nested list leads to Denial of Service