Advisory

GHSA-27jp-wm6q-gp25

Also known as: None

Summary

sqlparse: formatting list of tuples leads to denial of service

Details

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.

###

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-13 16:16 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

sqlparse

PyPI · All systems

Affected

  • introduced 0, fixed 0.5.4 (ecosystem)

Fixed versions

0.5.4

Fix

  • Fixed version 0.5.4
    pip install --upgrade sqlparse==0.5.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences