PT-2026-76736 · Pypi · Sqlparse

CVE-2026-71491

·

Published

2026-08-17

·

Updated

2026-09-01

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions sqlparse versions prior to 0.6.0
Description A Denial of Service (DoS) issue exists where a statement consisting of numerous single-line comments can cause quadratic CPU consumption. This occurs because the group comments() function in sqlparse/engine/grouping.py repeatedly rescans comment-only statements, bypassing the MAX GROUPING TOKENS guard. The issue is reachable via the sqlparse.parse() function and the sqlparse.format() function when the strip comments parameter is set to True. This is particularly critical as it affects the primary sanitizer path used by ORMs, SQL firewalls, and query loggers.
Recommendations Update to version 0.6.0.

Exploit

Fix

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-71491
ECHO-F355-4A28-B67E
GHSA-F2FF-P2WW-7P4P
OPENSUSE-SU-2026:11557-1
OPENSUSE-SU-2026:21690-1
PYSEC-2026-3697
SUSE-SU-2026:3762-1
SUSE-SU-2026:3906-1
SUSE-SU-2026:3907-1
SUSE-SU-2026:3910-1

Affected Products

Sqlparse