SQL injection in Firebase
highUpdated Oct 12, 2026
You do not fix this with a SQL driver because Firestore queries are structured. You still must not let the client decide which collection to read.
Fix for Firebase
You do not fix this with a SQL driver because Firestore queries are structured. You still must not let the client decide which collection to read. Rules do that. See Firebase rules left open.
The five-minute check, the other platforms, and the agent prompt are on the full guide. More Firebase fixes are on the Firebase page.