Skip to main content

What it flags

A call inside a Python function body passes an f-string with a variable in a direct SQL value position to a locally identified sqlite3 connection or cursor. The rule covers simple WHERE equalities, UPDATE assignments, and the first value of an INSERT row when the surrounding template makes the position clear. This finding identifies query composition for review. It does not establish where the value originated.

How to review or fix

Pass a SQL placeholder and bind the value separately. Python sqlite3 parameter binding