sqlparse
PyPI7 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting sqlparsepage 1 of 1
- CVE-2021-32839HIGHCVSS 7.5EG 7.5✓ Fixed in 0.4.22021-09-20
vulnerable: 0.4.0, 0.4.1
sqlparse is a non-validating SQL parser module for Python. In sqlparse versions 0.4.0 and 0.4.1 there is a regular Expression Denial of Service in sqlparse vulnerability. The regular expression may cause exponential backtracking on strings…
- CVE-2023-30608MEDIUMCVSS 5.5EG 5.5✓ Fixed in 0.4.42023-04-18
vulnerable: 0.1.15 ... 0.4.3 (16 versions)
sqlparse is a non-validating SQL parser module for Python. In affected versions the SQL parser contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service). This issue was introduced by commit `e75e358`.…
- CVE-2024-4340HIGHCVSS 7.5EG 7.5✓ Fixed in 0.5.02024-04-30
vulnerable: 0.1.0 ... 0.4.4 (32 versions)
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
- CVE-2026-54284HIGHCVSS 8.7EG 8.7✓ Fixed in 0.6.02026-08-17
vulnerable: 0.1.0 ... 0.5.5 (38 versions)
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by group_parenthesis and group_case, causing qu…
- CVE-2026-59893HIGHCVSS 7.5EG 7.5✓ Fixed in 0.6.02026-08-17
vulnerable: 0.1.0 ... 0.5.5 (38 versions)
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, c…
- CVE-2026-59894MEDIUMCVSS 6.2EG 6.2✓ Fixed in 0.6.02026-08-17
vulnerable: 0.1.0 ... 0.5.5 (38 versions)
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse/filters/output.py fails to escape existing backslashes before quotes in sqlparse.format output_format='python' and output_format='php' and the correspondin…
- CVE-2026-71491HIGHCVSS 8.7EG 8.7✓ Fixed in 0.6.02026-08-17
vulnerable: 0.1.0 ... 0.5.5 (38 versions)
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 thr…
Check whether sqlparse is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for sqlparse CVEs against the assets you own.
Start Free Scan →