Skip to content
OpenAdvisories
Medium GHSA-27jp-wm6q-gp25

sqlparse: formatting list of tuples leads to denial of service

Published Feb 13, 2026 · Updated Sep 10, 2026 · Assigned by GHSA

Description

### Summary
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](https://code.djangoproject.com/ticket/36416#comment:3), which allows querying composite fields with tuples.

###

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI sqlparse < 0.5.4 0.5.4 GHSA-27jp-wm6q-gp25

References