> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# python-sqlite-unbound-value

> A Python sqlite3 query inserts a value into SQL text instead of binding it.

## 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](https://docs.python.org/3/library/sqlite3.html#how-to-use-placeholders-to-bind-values-in-sql-queries)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.