CVE Catalog

CVE-2026-71491

HighCVSS 8.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.26%

18th percentile - higher than 18% of all known CVEs

Summary

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.

Risk Assessment

The risk includes excessive CPU consumption, which could lead to slowdowns or denial of service in applications using sqlparse to process large amounts of SQL data.

Recommendation

It is recommended to upgrade sqlparse to version 0.6.0 or later to avoid performance issues.

Other vulnerabilities in sqlparse

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS