Vibe Coding Horror Stories: 7 Real Incidents, 7 Missed Checks
Founder & CTO, Buttercloud
These vibe coding horror stories all happened. Each has a date, a named source and a founder or team who did exactly what the tools allowed. None of them are here to be laughed at. They are here because the same two or three mistakes keep producing the same headlines, and because each one maps to a single check from our vibe-coded app launch checklist that would have caught it.
If real people are about to use something you built with Lovable, Bolt, Replit, Cursor or Claude, read these seven first.
1. The “zero hand-written code” SaaS that was attacked within days
March 2025. Leonel Acevedo, founder of a lead-enrichment tool called EnrichLead, announced on X that he had built his product with Cursor and “zero hand-written code”, and positioned it as ready for paying customers. Days later he was posting that the app was under attack. The New Stack’s account of the episode gives the cause in one line: the generated code had shipped the application’s API keys where anyone could read them, and the app was wide open. Because Acevedo was not a developer, finding and closing the holes in a codebase he had never read turned into a slow, public ordeal.
What went wrong, operationally: third-party keys lived in the frontend. Anyone who opened the browser’s developer tools could lift them and call paid services on the founder’s account, or talk to the backend directly and skip whatever the UI enforced.
The check that would have caught it: check 9, the service key is not in the client, extended to every key. Search the built JavaScript bundle, not just the source, for anything that looks like a credential. If it is there, it is public, and the fix is move it server-side and rotate it today. Check 14, no secrets in the repository, is the same discipline one layer back.
2. The row-level security hole that earned Lovable a CVE
March to May 2025. Security researcher Matt Palmer found that apps generated by Lovable were talking to their Supabase database from the browser with the public key, while the database tables underneath had no effective row-level security. Palmer’s disclosure timeline runs from discovery on 20 March, to vendor notification on 21 March, to public disclosure on 29 May. The data reachable through the hole included names and emails from users tables, third-party API keys and tokens, and subscription and transaction records that could be read and in some cases rewritten.
The issue was assigned CVE-2025-48757, with the NVD description noting that unauthenticated remote attackers could read or write arbitrary database tables of generated sites. The vendor disputed the entry on the grounds that each customer is responsible for protecting their own application’s data. That dispute is the honest position of every vibe coding platform: the database rules are yours.
What went wrong, operationally: the platform’s architecture is legitimate. Browser-to-database with a public key is how Supabase is meant to be used. It only works if row-level security is on and the policies are right, and the generator was not writing them.
The check that would have caught it: check 8, row-level security is on for every table with user data. We walk through what that means and how to write the policies in our Supabase row-level security guide for founders, and the Lovable-specific version of the story in Is Lovable secure?.
3. The Replit agent that deleted a production database during a code freeze
July 2025. Jason Lemkin, founder of SaaStr, spent twelve days building an app on Replit in public and posting daily. On day nine the agent ran destructive commands against the live database, during what Lemkin had declared a code freeze. By his own later account, the database held 1,206 executive records and more than 1,196 company profiles. The agent then told him that rollback was not supported for databases and that all versions had been destroyed. Both statements were wrong. The Register reported that the rollback did in fact work and the data came back.
Replit’s CEO Amjad Masad called the deletion “Unacceptable and should never be possible”, and within days the company announced automatic separation of development and production databases, with the agent restricted to development by default.
What went wrong, operationally: one database served preview, testing and production. An agent with write access to the environment it was building in therefore had write access to live customer data. And when it mattered, nobody in the loop, human or model, knew for certain whether a restorable backup existed.
The check that would have caught it: check 10, backups exist and you have restored one. Lemkin’s data survived because a backup existed, but he spent a weekend believing it did not. If you have restored one yourself, you do not have to take a model’s word for it. The deeper fix, separate environments so that nothing an agent does in development can touch production, is covered in our vibe coding security guide.
4. The platform bug that opened private enterprise apps on Base44
July 2025. This one is different: the founders did nothing wrong. Wiz Research found that Base44, the vibe coding platform owned by Wix, exposed two authentication endpoints without any protection. Anyone who knew an app’s identifier, which was visible in the app’s URL and manifest path, could register an account on a private app and verify it, bypassing the app’s single sign-on entirely. Wiz’s disclosure says the issue was reported on 9 July 2025 and fixed within 24 hours, and that Wix found no evidence it had been exploited. SecurityWeek reported that the bypass had been confirmed against internal chatbots, knowledge bases and HR tools built on the platform.
What went wrong, operationally: a hosted platform’s own authentication layer had a logic gap. Every customer inherited it. No amount of care in the generated app would have changed that.
The check that would have caught it: honestly, none of the fourteen. This is the case for knowing exactly which parts of your stack you are trusting a vendor with, keeping the vendor’s security contact and status page to hand, and having someone on your side who reads the advisories when they land. If your app holds anything sensitive, that is a job, not a hobby.
5. The scan that found medical records and bank details in 5,600 apps
October 2025. Rather than one app, this is what a security firm found when it looked at thousands. Escape.tech scanned more than 5,600 publicly deployed vibe-coded applications, the majority built on Lovable with smaller samples from Create.xyz, Base44 and Bolt.new. Using only passive, conservative checks, they logged more than 2,000 vulnerabilities, more than 400 exposed secrets, and 175 instances of exposed personal data, including medical records, IBANs, phone numbers and emails.
The recurring causes they name will sound familiar by now: anonymous tokens and Supabase service keys retrievable from public JavaScript bundles, permissive or incomplete row-level security, and critical endpoints reachable without any login at all.
What went wrong, operationally: the same two defaults, at scale. The report’s authors are explicit that the numbers are a lower bound, because they did not probe anything that required authentication.
The check that would have caught it: checks 8 and 9 together. If row-level security is on with correct policies and the service key never leaves the server, the two largest categories in this scan disappear from your app.
6. Moltbook: 1.5 million agent tokens readable from the browser
January 2026. Moltbook was a social network for AI agents that went viral in days, and its founder said publicly that the whole thing was built with AI. Wiz Research looked at the public site the way any visitor would and found a Supabase key in the client-side JavaScript. That key is designed to be public, but only when row-level security limits what it can reach. Moltbook had no policies at all, so the key gave unauthenticated read and write access to the entire production database.
The exposed data, by Wiz’s count, included around 1.5 million agent authentication tokens, which allowed impersonation of any agent; about 35,000 email addresses; and more than 4,000 private agent-to-agent conversations, some containing plaintext third-party credentials such as OpenAI keys. Wiz also confirmed write access by editing a live post. Wiz made first contact late on 31 January and every table was secured within about three hours.
What went wrong, operationally: identical to incident 2, a year later and on a much larger surface. Add one detail: users were pasting live credentials into messages that were stored in plaintext in a database anyone could read.
The check that would have caught it: check 8 again. Row-level security with policies, tested as an anonymous user before the launch post goes out.
7. The Lovable-hosted exam platform that exposed 18,000 users
February 2026. Taimur Khan, an entrepreneur with an engineering background, picked an app from Lovable’s featured Discover page, a platform for creating exam questions and viewing grades with more than 100,000 views, and found sixteen vulnerabilities in it, six critical. The exposed set ran to 18,697 user records including 14,928 unique email addresses, among them teachers and students at universities and schools. An unauthenticated attacker could have read every record, sent bulk email, deleted accounts and altered grades.
The cause had two layers. Row-level security and role-based access had not been implemented. On top of that, one authentication function had its logic inverted: it blocked logged-in users and allowed anonymous ones, and the same mistake recurred across several critical functions. Lovable’s CISO pointed out that every project gets a free security scan before publishing, that acting on it is up to the user, and that the project included code not generated by Lovable.
What went wrong, operationally: the database defaults, and then code that looked right, ran without errors, and did the opposite of what it was supposed to do. A scanner will tell you row-level security is off. It will not tell you that an if is backwards.
The check that would have caught it: check 8 for the first layer. For the second, nothing on a checklist. That is what a human reading the code is for, and it is the whole argument of our piece on AI code review for vibe-coded apps: agents generate, someone has to gate.
The pattern across all seven
Lay them side by side and the horror stories stop looking like seven different disasters.
| # | Incident | Root cause | Checklist item |
|---|---|---|---|
| 1 | EnrichLead, Mar 2025 | Keys in the client | 9, 14 |
| 2 | Lovable CVE-2025-48757, May 2025 | Row-level security off | 8 |
| 3 | Replit and SaaStr, Jul 2025 | Shared dev and prod database, unverified backups | 10 |
| 4 | Base44, Jul 2025 | Platform authentication bug | None; vendor risk |
| 5 | Escape.tech scan, Oct 2025 | Keys in the client, row-level security off | 8, 9 |
| 6 | Moltbook, Jan 2026 | Row-level security off | 8 |
| 7 | Lovable exam app, Feb 2026 | Row-level security off, inverted auth logic | 8, plus code review |
Four of seven come down to one database setting. Three involve a key that should never have left the server. One is a backup nobody had tested. One is the vendor’s fault and a reminder that you are still the one who answers to your users. In none of them was the problem that the AI wrote bad business logic. The problem was that nobody checked the defaults.
The scale is not in doubt either. In September 2025, RedHunt Labs scanned about 130,000 published sites from thirteen vibe coding platforms and found leaked secrets on roughly 26,000 of them, one in five, including more than 16,000 Firebase credentials and more than 3,000 Supabase credentials, looking only at client-side code.
What to do this week
If you are about to launch, or already have, three things in this order.
- Open your database and look at every table with user data. Row-level security on, a policy that restricts rows to their owner, and a test as an anonymous user that returns nothing. Supabase’s row-level security documentation covers the mechanics; our founder’s guide covers which policies you actually need.
- Search your built JavaScript and your repository history for keys. Anything starting with
sk_live,service_roleorAIza, any bearer token, any database URL. Move it server-side, rotate it, and turn on GitHub’s secret scanning so it does not come back. - Restore a backup to a fresh copy and time it. If you cannot, you do not have backups, whatever the dashboard says. While you are there, make sure the environment your agent builds in is not the one your customers are using.
That is most of an afternoon and it closes six of the seven doors above. The seventh, the vendor one, and the harder problem of code that is confidently wrong, are what a senior engineer reading your changes is for. If you would like one to run the full fourteen-point checklist on your app before launch and hand you the results, get in touch. The founders in these stories were not careless. They just did not have anyone to ask.
Vibe Coding Horror Stories FAQs
Are vibe coding horror stories exaggerated? The individual stories get retold with inflated numbers, which is why every incident in this article links to a primary source: the researcher’s disclosure, the vendor’s own post, or the founder’s public account. The pattern underneath them is not exaggerated. Independent scans in 2025 found exposed secrets or data in a large share of publicly deployed vibe-coded apps, and the same two causes appear again and again.
Is the AI-written code the real problem in these incidents? Rarely. In five of the seven cases the application code worked as intended. What failed was configuration around it: database access rules left off, keys shipped in the browser bundle, one database shared between development and production. Those are operations decisions that AI tools do not make for you and that a first-time founder does not know to ask about.
Which vibe coding platform is the safest? The incidents here involve Lovable, Replit, Base44, Cursor and a custom build, and every major platform has shipped fixes since. The safer choice is less about the tool and more about whether someone checks the defaults before launch. A platform’s pre-publish security scan is a good start, but it only warns; it does not write your policies or move your keys server-side.
What is the single most common failure in vibe-coded apps? Database row-level security switched off, or switched on without real policies. It shows up in four of the seven incidents in this article, in the CVE assigned to Lovable, in the Moltbook exposure and in both independent scans. If you only check one thing before launch, check that.
How do I find out if my app is already exposed?
Run the fourteen checks in our launch checklist. For the database, open every table that holds user data and confirm row-level security is on with a policy that restricts rows to their owner. For keys, search your built JavaScript for anything that starts with sk_live, service_role or AIza. If you find either problem, fix it, then rotate the key, because anything that was readable should be assumed read. If you want a senior engineer to run the whole list and hand you the results, get in touch.
Have a product idea to talk through?
We'll show you how we'd approach it — no pressure, just a real conversation.
Book a Discovery Call