CVE-2026-71491
Published:August 17, 2026
Updated:August 31, 2026
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, group_comments in sqlparse/engine/grouping.py repeatedly rescans comment-only statements before the MAX_GROUPING_TOKENS guard, causing quadratic CPU consumption through sqlparse.parse() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.
Affected Packages
sqlparse (CONDA):
Affected version(s) >=0.1.7 <0.6.0Fix Suggestion:
Update to version 0.6.0https://github.com/andialbrecht/sqlparse.git (GITHUB):
Affected version(s) >=0.1.0 <0.6.0Fix Suggestion:
Update to version 0.6.0sqlparse (PYTHON):
Affected version(s) >=0.1.0 <0.6.0Fix Suggestion:
Update to version 0.6.0Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.26