Check your repo for committed .env files and open tables
Scan of 25,000 AI-built repos: Bolt leaked most, Lovable led on committed .env files · Security incident · Blog (Shippable) · Shippable · Oct 22, 2026
What happened
Shippable, which sells a security checker, says it ran static checks on about 25,000 public GitHub repos built with Bolt, Lovable, Cursor, Replit and v0 (updated 22 Oct). It says 51% of Bolt repos had at least one security issue and 20% a critical one, with 26% having a database table open to the public; 14% of Lovable repos had committed .env files. It found tokens made with Math.random() across every builder (7% to 14%).
How to prevent it
Keep .env files out of git (add them to .gitignore and rotate anything already committed), turn on row-level security with policies for every table, and generate tokens with a cryptographic random function, not Math.random(). See API key protection.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I built my app with an AI tool (Bolt, Lovable, Cursor, Replit or v0) and want to check it for the most common mistakes found in a recent scan of 25,000 AI-built repos. 1) Check whether any .env or secrets file is committed to my git history, and if so explain how to remove it and which keys I must rotate at their providers. 2) Make sure .gitignore covers .env files. 3) If I use Supabase, list every table and whether row-level security is on with a policy, and flag any table anyone can read or any column a user could edit to change their own role or plan. 4) Find any tokens, IDs or reset codes generated with Math.random() and suggest a secure replacement. Explain your plan before changing anything. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: open database rules
Apps built on Supabase or Firebase talk to the database straight from the browser with a public key. Without row-level security or security rules, anyone with that key can read or change every row.
A quick checklist before you ship
- Turn on row-level security for every table and add explicit policies.
- Test with a second account and with no account at all.
- Never expose the service-role or admin key to the browser.
- Check which columns a user can update, so nobody can change their own role or plan.
More on this: every open database rules story and our related guide.
Tools involved
Bolt stories, Lovable stories, Cursor stories, Replit stories, v0 stories, Supabase stories
Related stories
- Open your Lovable app logged out, query each Supabase table with the public anon key, and turn on Row Level Security with owner-only policies for anything that comes back
Crissy Field: 7,403 Lovable sites returned tables with email addresses to anyone, no login needed - Turn on RLS in a Lovable + Supabase app
CVE-2025-48757: 170 Lovable apps with missing RLS - Get secret keys out of your frontend bundle
Scan of 978 vibe-coded apps finds 1 in 26 ship a secret key to every visitor
Source: original post on Blog (Shippable) ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.