PyPI (Python)Worst: High10 advisories

sqlparse: known vulnerabilities

sqlparse has 10 reviewed security advisories in the GitHub Advisory Database — 6 high, 4 moderate. The most recent was published 2026-09-01. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the sqlparse versions running across your servers, containers and images, and ranks what to patch first.

How to fix sqlparse

Upgrade sqlparse to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade sqlparse (pin sqlparse>=0.6.0)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (10)

sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption Moderate CWE-407 — Affected: before 0.6.0. Fixed in 0.6.0. Published 2026-09-01. GHSA-cfqr-cjx5-5jcm · CVE-2026-84305
sqlparse: Generated Python and PHP snippets allow SQL string breakout through unescaped backslashes Moderate CWE-94 — Affected: before 0.6.0. Fixed in 0.6.0. Published 2026-08-17. GHSA-3496-9g83-7v6x · CVE-2026-59894
sqlparse: Quadratic O(n²) DoS in group_comments High CWE-400 CWE-407 — Affected: before 0.6.0. Fixed in 0.6.0. Published 2026-08-17. GHSA-f2ff-p2ww-7p4p · CVE-2026-71491
sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service) High 7.5 CWE-1333 — Affected: before 0.6.0. Fixed in 0.6.0. Published 2026-08-17. GHSA-prg7-hcfm-mfcr · CVE-2026-59893
sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger High CWE-1333 CWE-407 — Affected: before 0.6.0. Fixed in 0.6.0. Published 2026-08-17. GHSA-pwgv-4x5q-6m9f · CVE-2026-54284
sqlparse: formatting list of tuples leads to denial of service Moderate CWE-770 — Affected: before 0.5.4. Fixed in 0.5.4. Published 2026-02-13. GHSA-27jp-wm6q-gp25
Duplicate Advisory: sqlparse parsing heavily nested list leads to Denial of Service High 7.5 CWE-674 — Affected: before 0.5.0. Fixed in 0.5.0. Published 2024-04-30. GHSA-62qf-jcq8-8gxw
sqlparse parsing heavily nested list leads to Denial of Service High 7.5 CWE-674 — Affected: before 0.5.0. Fixed in 0.5.0. Published 2024-04-15. GHSA-2m57-hf25-phgg · CVE-2024-4340
sqlparse contains a regular expression that is vulnerable to Regular Expression Denial of Service Moderate 5.5 CWE-1333 — Affected: from 0.1.15 up to 0.4.4. Fixed in 0.4.4. Published 2023-04-18. GHSA-rrm6-wvj7-cwh2 · CVE-2023-30608
StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service) High 7.5 CWE-400 — Affected: from 0.4.0 up to 0.4.2. Fixed in 0.4.2. Published 2021-09-20. GHSA-p5w8-wqhj-9hhf · CVE-2021-32839

Find sqlparse across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.