Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sqlparse
  4. ›
  5. GHSA-27jp-wm6q-gp25

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

February 13, 2026

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.

References

  • github.com/advisories/GHSA-27jp-wm6q-gp25
  • github.com/andialbrecht/sqlparse
  • github.com/andialbrecht/sqlparse/commit/40ed3aa958657fa4a82055927fa9de70ab903360
  • github.com/andialbrecht/sqlparse/releases/tag/0.5.4
  • github.com/andialbrecht/sqlparse/security/advisories/GHSA-27jp-wm6q-gp25

Code Behaviors & Features

Detect and mitigate GHSA-27jp-wm6q-gp25 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.5.4

Fixed versions

  • 0.5.4

Solution

Upgrade to version 0.5.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/sqlparse/GHSA-27jp-wm6q-gp25.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:56 +0000.