CVE-2026-71491
sqlparse: Quadratic O(n²) DoS in group_comments
Reported by github_m · Published August 17, 2026
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 through sqlparse.parse() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openstack-nova-2025.1 | Chainguard | 31.3.0_git20260717-r4 |
| openstack-keystone-2025.1-fips | Chainguard | 27.0.1_git20260811-r1 |
| datahub-ingestion | Chainguard | 1.7.0-r2 |
| pgadmin4 | Chainguard | 9.17-r1 |
| openstack-placement-2025.2-fips | Chainguard | 14.0.0_git20260309-r9 |
| dbt-core | Chainguard | 1.12.3-r0 |
| openstack-horizon-2026.1 | Chainguard | 25.7.3_git20260814-r1 |
| openstack-horizon-2025.1 | Chainguard | 25.3.2_git20260617-r8 |
| openstack-glance-2026.1 | Chainguard | 32.0.0_git20260805-r1 |
| authentik-2026.5 | Chainguard | 2026.5.6-r9 |
| airflow-3 | Wolfi | 3.3.1-r3 |
| openstack-horizon-2025.2 | Chainguard | 25.5.2_git20260812-r1 |
17 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| andialbrecht | sqlparse | < 0.6.0 |
| chainguard | openstack-nova-2025.1 | 0 |
| chainguard | openstack-keystone-2025.1-fips | 0 |
| chainguard | datahub-ingestion | 0 |
| chainguard | pgadmin4 | 0 |
| chainguard | openstack-placement-2025.2-fips | 0 |
| chainguard | dbt-core | 0 |
| chainguard | openstack-horizon-2026.1 | 0 |
| chainguard | openstack-horizon-2025.1 | 0 |
| chainguard | openstack-glance-2026.1 | 0 |
| chainguard | authentik-2026.5 | 0 |
| wolfi | airflow-3 | 0 |
| chainguard | openstack-horizon-2025.2 | 0 |
| chainguard | openstack-glance-2025.2-fips | 0 |
| chainguard | authentik-fips-2025.12 | 0 |
| chainguard | airflow-core-2 | 0 |
| chainguard | authentik-fips-2026.2 | 0 |
| chainguard | openstack-placement-2026.1 | 0 |
| chainguard | superset-5.0 | 0 |
| chainguard | openstack-placement-2025.1-fips | 0 |
…and 37 more
Timeline
- Aug 17, 2026 CVE Published
- Aug 24, 2026 EPSS Score (22 in total, the first dated here)
- Sep 5, 2026 Security Advisory (5 in total, the first dated here)
- Sep 24, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-71491
vulnetix vdb fixes CVE-2026-71491
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-71491/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-f2ff-p2ww-7p4p x_refsource_CONFIRM
- https://github.com/andialbrecht/sqlparse/commit/ef2012a5eeb491e604dea2b00d516904a3830c87 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-71491 advisory
- https://github.com/advisories/GHSA-f2ff-p2ww-7p4p advisory