Vulnerability in Andialbrecht Sqlparse

CVE-2026-59893

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.

Vulnerability class: ReDoS (Regular Expression Denial of Service)

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-59893?
CVE-2026-59893 is a high-severity vulnerability in Andialbrecht Sqlparse, classified under Inefficient Regular Expression Complexity. CVSS score: 7.5/10. Published 2026-08-17.
How severe is CVE-2026-59893?
High severity. CVSS v3 base score is 7.5 out of 10.