sqlparse is vulnerable to Denial of Service (DoS)
70
High Risk
sqlparse stores a string copy of each parsed group by processing every nested token, and it does this for every parenthesis, CASE expression, and list it wraps. Nested SQL therefore repeats that work at every level. A small payload of nested parentheses or CASE WHEN chains can stall a worker for several seconds before the existing depth and token caps abort, including on the default parse, format, and split paths. The fix concatenates each child's existing string instead of processing the whole tree.
You are affected if you use a version in the vulnerable range and pass untrusted or externally influenced SQL to sqlparse.parse, sqlparse.format or sqlparse.split.
sqlparse is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 0.5.5.
Upgrade the sqlparse library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant