vetkit.py.sql-injection.orm-fragment
A raw SQL fragment for the Django ORM (RawSQL, QuerySet.extra) is built with string interpolation. Untrusted values in it lead to SQL injection.
Last updated:
Suite: Security
python
A raw SQL fragment for the Django ORM (RawSQL, QuerySet.extra) is built with string interpolation. Untrusted values in it lead to SQL injection.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use %s placeholders and pass values separately (RawSQL(sql, params), extra(where=[...], params=[...])).
References
Source: packages/engine/rules/sast/python.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.