{"id":"GHSA-27jp-wm6q-gp25","aliases":["ROOT-APP-PYPI-GHSA-27jp-wm6q-gp25"],"status":"published","title":"sqlparse: formatting list of tuples leads to denial of service","description":"### 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###","severity":{"version":"4.0","score":6.9,"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","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2026-02-13T16:16:11Z","modified":"2026-11-06T11:15:03Z","fixes":[{"ecosystem":"PyPI","package":"sqlparse","fixed_in":["0.5.4"],"sources":["ghsa","osv"]},{"ecosystem":"Root:PyPI","package":"sqlparse","fixed_in":["0.4.4+aikido.1","0.5.3+aikido.1","0.3.0+aikido.2","0.3.0+aikido.3","0.3.0+aikido.4","0.5.3+aikido.2","0.3.0+aikido.5","0.3.0+aikido.6","0.5.1+aikido.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"sqlparse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.3"},{"fixed":"0.5.4"}]}]},{"source":"osv","ecosystem":"PyPI","package":"sqlparse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.4"}]}],"versions":["0.1.0","0.1.1","0.1.10","0.1.11","0.1.12","0.1.13","0.1.14","0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.3.0","0.3.1","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.5.3"]},{"source":"osv","ecosystem":"Root:PyPI","package":"sqlparse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.4+aikido.1"},{"fixed":"0.5.3+aikido.1"},{"fixed":"0.3.0+aikido.2"},{"fixed":"0.3.0+aikido.3"},{"fixed":"0.3.0+aikido.4"},{"fixed":"0.5.3+aikido.2"},{"fixed":"0.3.0+aikido.5"},{"fixed":"0.3.0+aikido.6"},{"fixed":"0.5.1+aikido.1"}]}]}],"references":[{"url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-27jp-wm6q-gp25","tags":["web"]},{"url":"https://github.com/andialbrecht/sqlparse/commit/40ed3aa958657fa4a82055927fa9de70ab903360","tags":["web"]},{"url":"https://github.com/andialbrecht/sqlparse/releases/tag/0.5.4","tags":["web"]},{"url":"https://github.com/advisories/GHSA-27jp-wm6q-gp25"},{"url":"https://github.com/andialbrecht/sqlparse","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-27jp-wm6q-gp25","title":"sqlparse: formatting list of tuples leads to denial of service","description":"### 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###","status":"published","published":"2026-02-13T16:16:11Z","modified":"2026-02-13T16:16:13Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:39:24.742346Z"}],"osv":[{"id":"GHSA-27jp-wm6q-gp25","title":"sqlparse: formatting list of tuples leads to denial of service","description":"### 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###","status":"published","published":"2026-02-13T16:16:11Z","modified":"2026-09-10T03:50:33.710557518Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T15:46:33.956911Z"},{"id":"ROOT-APP-PYPI-GHSA-27jp-wm6q-gp25","title":"GHSA-27jp-wm6q-gp25 in sqlparse - Patched by Root","description":"Root has patched GHSA-27jp-wm6q-gp25 in the sqlparse package for Root:PyPI. Multiple fixed versions available.","status":"published","published":"2026-11-06T10:53:14Z","modified":"2026-11-06T11:15:03.1257954Z","updated_at":"2026-11-06T11:42:45.055937Z"}]}}
