CISA list

● PyPI package

sqlparse

Sqlparse has nine security advisories. The newest release any of them names as the fix is 0.6.0.

As of , sqlparse has nine security advisories. The newest release any of them names as the fix is 0.6.0.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 0.6.00.6.09 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-84305GHSA-cfqr-cjx5-5jcm, PYSEC-2026-3923sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumptionModerate severityBefore 0.6.00.6.0
CVE-2026-59893GHSA-prg7-hcfm-mfcr, PYSEC-2026-3698sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service)High severityBefore 0.6.00.6.0
CVE-2026-54284GHSA-pwgv-4x5q-6m9f, PYSEC-2026-3699sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps triggerHigh severityBefore 0.6.00.6.0
CVE-2026-71491GHSA-f2ff-p2ww-7p4p, PYSEC-2026-3697sqlparse: Quadratic O(n²) DoS in group_commentsHigh severityBefore 0.6.00.6.0
CVE-2026-59894GHSA-3496-9g83-7v6x, PYSEC-2026-3696sqlparse: Generated Python and PHP snippets allow SQL string breakout through unescaped backslashesModerate severityBefore 0.6.00.6.0
GHSA-27jp-wm6q-gp25sqlparse: formatting list of tuples leads to denial of serviceModerate severityBefore 0.5.40.5.4
CVE-2024-4340GHSA-2m57-hf25-phgg, PYSEC-2026-1940sqlparse parsing heavily nested list leads to Denial of ServiceHigh severityBefore 0.5.00.5.0
CVE-2023-30608GHSA-rrm6-wvj7-cwh2, PYSEC-2023-87sqlparse contains a regular expression that is vulnerable to Regular Expression Denial of ServiceModerate severityFrom 0.1.15 before 0.4.40.4.4
CVE-2021-32839GHSA-p5w8-wqhj-9hhf, PYSEC-2021-333StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service)High severityFrom 0.4.0 before 0.4.20.4.2

Other PyPI packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0
  • Package advisories from the PyPA advisory database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0