Intent-Code Divergence
High
- Confidence
- 99% confidence
- Finding
- This example builds a SQL statement for `set local nile.tenant_id` using `sql.raw(tenantId)` even though the tenant value may come from request data. That defeats query parameterization and can allow SQL injection into a security-sensitive session/transaction setting that controls tenant isolation, creating a risk of cross-tenant data access or broader query manipulation.
