GHSA-27jp-wm6q-gp25
MEDIUMsqlparse: formatting list of tuples leads to denial of service
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.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | sqlparse | < 0.5.4 | 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
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Feb 2026)