CVE-2026-71491

HIGH CVSS 4.0: 8.7 EPSS 0.26%
Updated Oct 23, 2026
Python
Parameter Value
CVSS 8.7 (HIGH)
Fixed In 0.6.0
Type CWE-400 (Uncontrolled Resource Consumption), CWE-407
Vendor Python
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products

andialbrecht:sqlparse