Medium

sqlparse: formatting list of tuples leads to denial of service

  • Disclosed: 13.02.2026
  • Updated: 11.10.2026 15:17

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, which allows querying composite fields with tuples.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) sqlparse < 0.5.4 0.5.4

References

CVSS score -
CVSS 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
Weakness (CWE)
CWE-770
Platform
Python (PyPI)
Package
sqlparse
Disclosed
13.02.2026
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-27jp-wm6q-gp25 - CC BY 4.0

Vulnerability history: sqlparse

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (9) in the archive
Total entries
9
First → latest
09.2021 09.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 5
  • Medium 4

Disclosures per year

  1. 2021: 1
  2. 2022: 0
  3. 2023: 1
  4. 2024: 1
  5. 2025: 0
  6. 2026: 6
Severity:
  1. High CVE-2026-71491 < 0.6.0 0.6.0
  2. sqlparse: formatting list of tuples leads to denial of service this entry
    Medium ghsa-27jp-wm6q-gp25 < 0.5.4 0.5.4
  3. High · 7.5 CVE-2024-4340 < 0.5.0 0.5.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.