Denial of Service in sqlparse Python Module Affecting Andi Albrecht
CVE-2026-54284
8.7HIGH
What is CVE-2026-54284?
The sqlparse module, utilized for parsing SQL in Python applications, has a vulnerability in its TokenList construction and string conversion processes. This flaw can lead to excessive CPU consumption when dealing with nested token subtrees produced by group_parenthesis and group_case functions. Prior to version 0.6.0, attempts to parse or format complex SQL queries could lead to performance degradation, potentially resulting in a Denial of Service. The issue has been addressed in version 0.6.0, which mitigates the risk of excessive resource consumption.
Affected Version(s)
sqlparse < 0.6.0
