# GHSA-27jp-wm6q-gp25: sqlparse: formatting list of tuples leads to denial of service

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-02-13T16:16:11.000Z
- Modified: 2026-09-10T03:50:33.710Z
- Weaknesses: CWE-770

## 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.

###

(As written by GitHub Advisory Database.)

## Affected

- sqlparse (PyPI): before 0.5.4

## References

- <https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-27jp-wm6q-gp25> (web)
- <https://github.com/andialbrecht/sqlparse/commit/40ed3aa958657fa4a82055927fa9de70ab903360> (web)
- <https://github.com/andialbrecht/sqlparse> (package)
- <https://github.com/andialbrecht/sqlparse/releases/tag/0.5.4> (web)

## Sources

- GitHub Advisory Database: [GHSA-27jp-wm6q-gp25](https://github.com/advisories/GHSA-27jp-wm6q-gp25), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-27jp-wm6q-gp25 · Whole record: https://cve.day/GHSA-27jp-wm6q-gp25.json · Rebuilt by cve.day 2026-11-25T22:56:33.517Z
