Is sqlparse 0.3 vulnerable?
PyPI · 2 releases from 0.3.0 to 0.3.1 · latest sqlparse is 0.6.1 · checked 18 Nov 2026
Yes: 8 known advisories
Yes. sqlparse 0.3.1, the last 0.3 release, is affected by 8 known security advisories (4 high, 4 medium), including CVE-2026-59893, CVE-2026-54284, CVE-2026-71491. Upgrade to 0.6.0 or later to fix all of them.
pip install 'sqlparse>=0.6.0'Is your project on an affected sqlparse?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting sqlparse 0.3.1
sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service)
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: Quadratic O(n²) DoS in group_comments
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: Generated Python and PHP snippets allow SQL string breakout through unescaped backslashes
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: formatting list of tuples leads to denial of service
- Affected
- <0.5.4
- Fixed in
- 0.5.4
sqlparse parsing heavily nested list leads to Denial of Service
- Affected
- <0.5.0
- Fixed in
- 0.5.0
sqlparse contains a regular expression that is vulnerable to Regular Expression Denial of Service
- Affected
- >=0.1.15 <0.4.4
- Fixed in
- 0.4.4
Every sqlparse 0.3.x release
Affected: 0.3.0 to 0.3.1. Latest sqlparse: 0.6.1.
| Version | Known advisories |
|---|---|
| sqlparse 0.3.1 | CVE-2026-84305, CVE-2026-59893, CVE-2026-54284, CVE-2026-71491, CVE-2026-59894, GHSA-27jp-wm6q-gp25, CVE-2024-4340, CVE-2023-30608 |
| sqlparse 0.3.0 | CVE-2026-84305, CVE-2026-59893, CVE-2026-54284, CVE-2026-71491, CVE-2026-59894, GHSA-27jp-wm6q-gp25, CVE-2024-4340, CVE-2023-30608 |
Which of your client projects are still on sqlparse 0.3?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact sqlparse version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other sqlparse versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.