๐Ÿ” CVE Alert

CVE-2026-59893

HIGH 7.5

sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service)

CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-1333
Vendor andialbrecht
Product sqlparse
Published Aug 17, 2026
Last Updated Aug 17, 2026
Stay Ahead of the Next One

Get instant alerts for andialbrecht sqlparse

Be the first to know when new high vulnerabilities affecting andialbrecht sqlparse are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

andialbrecht / sqlparse
< 0.6.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-prg7-hcfm-mfcr github.com: https://github.com/andialbrecht/sqlparse/commit/d1d80602741f77ec78e5a04ce4719244cf32352e