sqlparse is vulnerable to Code Injection
62
Medium Risk
The Python and PHP output modes in sqlparse generate source-code snippets from caller-supplied SQL and escape quote characters without escaping backslashes. A backslash placed immediately before a quote causes the generated escape to apply to the backslash, letting the quote terminate the generated string and inject code into the snippet. If a workflow executes or imports the generated Python or PHP code, it runs in that process. The fix escapes backslashes before escaping quotes in the generated output.
You are affected if you are using a version that falls within the vulnerable range and you convert untrusted SQL using the Python or PHP output format.
sqlparse is vulnerable to Code Injection 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