sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger

Date Aug 17, 2026
Type Vendor advisory
Signal High-risk advisory
Vendor / Product PyPI ยท sqlparse
CVE CVE-2026-54284
High-risk advisory CVE-2026-54284

Summary

sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger

Why it matters

GitHub has published a reviewed security advisory for sqlparse. Prioritize it with other application dependency updates.

Operator check

Check whether sqlparse is present in application dependency manifests, lockfiles, or build images. Review the GitHub advisory and upgrade to a patched version where available. CVSS score: 8.7.

Sources

PatchBrief uses public sources. It does not scan environments, verify exposure, or replace vendor guidance.