The 18 ways AI-built apps leak their users' data, each one on the public record, checked before you launch.
greenlit.priberry.com/blockers
Built your app with Lovable, Bolt, v0, Replit, Cursor or Claude Code? These are the mistakes behind the leaks in the news: open databases, keys in the browser, Firebase left in test mode. Every pattern links to a dated public incident or the platform's own rule, comes with a fix prompt you paste into your builder, and has a check that runs before you deploy. (12 from dated incidents or studies, 6 from the platform's own rules.)
$ npx launch-blockers check
launch-blockers · BLOCKED
3 things to fix before you launch:
1. The secret VITE_OPENAI_API_KEY is named so it ships to the browser [critical]
src/ai.ts:1
Fix prompt for your builder: My project has a secret named VITE_OPENAI_API_KEY...
2. The table "profiles" is created without Row Level Security [high]
supabase/migrations/20260101_init.sql:1
3. Anyone on the internet can read every row of "messages" [high]
supabase/migrations/20260101_init.sql:4
| You are... | Do this | Takes |
|---|---|---|
| About to launch | npx launch-blockers check in your project folder |
1 minute |
| Using Claude Code | npx launch-blockers install, then ask Claude to "run the launch-blockers skill". Deploys are now checked first. |
1 minute |
| Not a developer (Lovable, Bolt, Base44) | Open PLAYBOOK.md and paste each fix prompt into your builder | 10 minutes |
| Wondering if your live app leaks right now | npx greenlitlab yourapp.com --mine (your own app only) |
2 minutes |
- About 1 in 5 public Lovable projects on GitHub would ship a leak: this check flagged 25% of 1,167 drawn at random, and a hand-check found a real leak in 30 of 36 flagged apps. No app is named (the study, Priberry, Nov 2026).
- 1.5 million API tokens and 35,000 emails sat in a vibe-coded app's database with Row Level Security never switched on (Moltbook, Feb 2026, Wiz).
- 24,664 of 34,545 Lovable projects using Supabase returned database records to a visitor with no login (Crissy Field, Nov 2026; some of it may be meant to be public, Techzine).
- About 300 million messages were exposed by one Firebase misconfiguration in an AI chat app (Jan 2026, 404 Media).
None of these needed a hacker. Each was one setting.
| # | Pattern | Severity | Found by | On the record |
|---|---|---|---|---|
| 1 | Database tables with no Row Level Security | critical | scan | CVE-2025-48757: Lovable apps without working RLS (2025-05) |
| 2 | Row Level Security is on, but the rule checks nothing | high | scan | CVE-2025-48757: Lovable apps without working RLS (2025-05) |
| 3 | Firebase rules that let anyone in ("if true" or test mode) | critical | scan | AI chat app exposes chat histories (2026-01) |
| 4 | File storage anyone can read (ID photos, documents, uploads) | critical | scan | Tea app: verification selfies and IDs exposed (2025-07) |
| 5 | A paid API key (OpenAI, Gemini, Stripe...) shipped in the browser code | critical | scan | About 3,000 websites exposing ChatGPT keys (2026-02) |
| 6 | The Supabase service_role (secret) key in the browser | critical | scan | Rule: Supabase docs: API keys |
| 7 | The .env file committed to git | high | scan | 5,000+ GitHub repositories with OpenAI keys committed (2026-02) |
| 8 | A backend function anyone on the internet can call | high | scan | Rule: Supabase docs: function configuration (verify_jwt) |
| 9 | A payment webhook that believes anyone | high | scan | Rule: Stripe docs: verify webhook signatures |
| 10 | An access check that's backwards or only in the browser | critical | agent review | Lovable-showcased app with an inverted access check (2026-02) |
| 11 | Change the number in the address, see someone else's data | critical | agent review | Rule: OWASP API Security Top 10: API1 Broken Object Level Authorization |
| 12 | A private app that still lets anyone sign up | high | agent review | Base44: anyone could join private apps (2025-07) |
| 13 | An internal tool published to the open internet | high | agent review | RedAccess: thousands of public vibe-coded apps with company data (2026-05) |
| 14 | Your coding agent can change the production database | medium | scan | Replit agent deletes a production database (2025-07) |
| 15 | The live database isn't what your files say | high | live check | Crissy Field scan of 159,041 Lovable projects (2026-11) |
| 16 | The secret that signs logins is written into the code | high | scan | Invicti: the same secrets across 20,656 AI-generated apps (2025-11) |
| 17 | A database rule trusts what users can change about themselves | high | scan | Rule: Supabase Security Advisor: lint 0015, RLS references user metadata |
| 18 | A view or database function that skips Row Level Security | high | scan | Rule: Supabase Security Advisor: lint 0010, security definer view |
Full detail, fix prompts and sources: PLAYBOOK.md. Machine-readable: data/patterns.json.
npx launch-blockers install adds two things to your project's .claude folder:
- A skill that walks your agent through all 18 patterns, including the ones no scanner can judge (backwards access checks, other users' records, private apps with open sign-up).
- A guard that runs before deploy commands. It reads the command the way your shell will:
vercel,netlify deploy,supabase db push,firebase deploy,wrangler deploy,fly deploy,railway upand about 30 more, including behindnpx,sudo,bash -c, a shell script or annpm runscript that deploys. Agit pushto main on a host that deploys from git asks you first, and so do MCP tools that deploy. It checks the folder being deployed, with the migrations at the top of its repository.- BLOCKED: the deploy is stopped and your agent gets the reasons and fix prompts.
- NOT CHECKED: the check couldn't run, so you're asked. It never passes silently.
- CLEAR: nothing changes; your usual approval still applies, with a note of what wasn't checked.
- If Claude Code can't ask you (bypass mode), anything that would ask is refused instead.
The guard carries its own copy of the check, so nothing is downloaded at deploy time and a package in your project's node_modules can't answer for it. If node can't run, the command is held rather than let through.
Checked a finding yourself and it's fine (say, Row Level Security switched on in the dashboard)? Add its id and your reason to .launch-blockers-ignore. A line without a reason doesn't count. When a serious finding is ignored, you're asked before each deploy, with your reason shown. The skill tells your agent never to write that file itself.
Use --global to install for every project. The skill is also written to .agents/skills, which Codex, Cursor, Gemini CLI and Copilot read; the deploy guard is for Claude Code today. Tested on macOS and Linux; Windows isn't verified yet.
A file scan reads your files. It can't see:
- your live database, if rules were changed in the dashboard (run
npx greenlitlab yourapp.com --mine); - logic mistakes in your own code, which is why the skill has your agent review them;
- anything new. "CLEAR" means none of the known patterns matched. It doesn't mean safe.
Everything runs on your computer. Nothing is uploaded, and nothing is downloaded when the guard runs. Names in .env files are read, never values. A key found in code is reported by its kind and line, never its value.
Open an issue with a public link: an incident write-up, a study, or the platform's own documentation. Patterns are added only with a source anyone can read, and counts are quoted as the source gives them.
The scanning is Greenlit's project scan. From the same team: Crumple crash-tests your AI coding agent setup, and Tare cuts its token bill. Apache-2.0.