6 security holes AI builders leave in Lovable, Bolt and Cursor apps
AI builders are very good at getting an app to work. They are less good at noticing what a stranger can do with that app once it is live. "It works" and "it's secure" are different tests, and the model will happily tell you it passed both. We build CapLeak, a scanner that looks at a live app from t

AI builders are very good at getting an app to work. They are less good at noticing what a stranger can do with that app once it is live. "It works" and "it's secure" are different tests, and the model will happily tell you it passed both.
We build CapLeak, a scanner that looks at a live app from the outside, the way a stranger's browser sees it. It runs 31 checks (25 on every scan, 6 more after you prove you own the app). This post isn't a stats report. It's the six problem areas those checks are built around, and why they keep showing up in apps made with Lovable, Bolt, Cursor, v0 and Replit.
Why AI builders do it: to "make it work". The quickest way to call OpenAI from a Vite app is to put the key in a VITE_ variable. The quickest way in Next.js is NEXT_PUBLIC_. Both prefixes mean "copy this value into the browser bundle"..gitignore doesn't help, because the leak happens at build time, not in Git.
What it is: tables readable with the anon key your app ships, because Row Level Security (RLS) is off or a policy says using (true).
Why AI builders do it: many AI-built apps query Supabase straight from the browser. That's a valid design, but only if RLS holds up. When a query fails because of a policy, the shortest path to a working app is "turn RLS off" or "allow all".
What it is: open sign-ups with email confirmation off, or anonymous sign-ins on, in an app that doesn't need them.
Why it matters: this is the quiet half of RLS. A policy written to authenticated using (true) looks safe, but if anyone can sign up in one click, "authenticated" means "anyone". Signed in is not the same as allowed.
What it is: private files that your host serves to anyone who asks for them.
Why it happens: a.env dropped into public/, a whole project folder uploaded instead of the build output, or source maps turned on in production. An exposed.git folder can be worse than one env file, because it can let someone rebuild your source code and history.
What it is: a Supabase Storage bucket marked public that holds invoices, ID photos or user uploads.
Why it happens: "public" is the easy setting when an image won't load. That's fine for logos and product photos. It's wrong for anything personal, because anyone with a file's URL can open it.
What it is: no HTTP-to-HTTPS redirect, missing HSTS, no Content-Security-Policy, no clickjacking protection, no X-Content-Type-Options: nosniff, no Referrer-Policy or Permissions-Policy. A related problem is an API that reflects any Origin back with credentials allowed.
Why it happens: builders focus on features. Headers are set at the host or framework level, and nobody prompts for them.
CapLeak checks all of these from the outside and shows exactly where each problem is and how to fix it: https://capleak.vercel.app/?utm_source=devto