{"id":"GHSA-27jp-wm6q-gp25","aliases":["GHSA-27jp-wm6q-gp25"],"related":[],"kind":"vulnerability","state":"published","title":"sqlparse: formatting list of tuples leads to denial of service","summary":"### Summary\nThe below gist hangs while attempting to format a long list of tuples.\n\nThis was found while [drafting a regression test for Dja\nngo 5.2's composite primary key feature](https://code.djangoproject.com/ticket/36416#comment:3), which allows querying composite fields with tuples.\n\n###","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\nThe below gist hangs while attempting to format a long list of tuples.\n\nThis was found while [drafting a regression test for Dja\nngo 5.2's composite primary key feature](https://code.djangoproject.com/ticket/36416#comment:3), which allows querying composite fields with tuples.\n\n###","format":"markdown","source":"ghsa"}],"published":"2026-02-13T16:16:11.000Z","modified":"2026-09-10T03:50:33.710Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5.4"}],"ecosystem":"PyPI","package":"sqlparse","purl":"pkg:pypi/sqlparse","source":"ghsa"}],"references":[{"url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-27jp-wm6q-gp25","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/andialbrecht/sqlparse/commit/40ed3aa958657fa4a82055927fa9de70ab903360","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/andialbrecht/sqlparse","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/andialbrecht/sqlparse/releases/tag/0.5.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-27jp-wm6q-gp25","url":"https://github.com/advisories/GHSA-27jp-wm6q-gp25","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:33.710Z"}],"updatedAt":"2026-11-25T22:56:33.517Z"}