| Property | |
|---|---|
| Language | |
| Severity | |
| CWE | CWE-89: Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’) |
| OWASP | A01:2017 - Injection |
| Confidence Level | Low |
| Impact Level | High |
| Likelihood Level | Low |
Description
Building SQL queries in psycopg2 by concatenating variables directly into the query string can allow user input to change the structure of the SQL command. This exposes your code to SQL injection attacks when user data is not properly handled.