SQL Parsing Performance Degradation in Python Module by Andi Albrecht
CVE-2026-71491
8.7HIGH
What is CVE-2026-71491?
The sqlparse module, a non-validating SQL parser for Python, experienced a performance-related vulnerability. In versions prior to 0.6.0, the processing of comment-only SQL statements results in excessive CPU consumption due to repeated rescanning before reaching the MAX_GROUPING_TOKENS limit. This inefficiency can lead to degraded application performance when parsing SQL containing many comments. The issue has been resolved in version 0.6.0, emphasizing the importance of maintaining updated software.
Affected Version(s)
sqlparse < 0.6.0
