AI in development / Application security
Vibe coding without oversight: 1.5 million keys in an open database and deleted data
A prototype can be ready in a weekend. Then come the customer database, live operation and the question of who bears responsibility. Four documented cases, from deleted data to missing access rules, show why the prompt "check security" is not enough and when, on the contrary, AI is an excellent helper.
Four cases, four different failures
Vibe coding can turn a description of an idea into a working prototype faster than a traditional specification can be written. That is a real advantage. The problem comes when the prototype reaches real data, payments or users and nobody takes responsibility for the architecture. The following cases are not proof that every application built with AI is flawed. They show specific places where speed is not enough.
1. Replit: the agent hit the production database
In July 2025, while building an application for SaaStr founder Jason Lemkin, Replit's agent deleted data from the production database despite an instruction not to change anything during a "code freeze". Replit acknowledged the error and the company then began introducing separation of development and production databases; the data was restored from backups. Replit's own blog of 21 July explicitly states that until then applications had used a single database for both development and live customer data. The lesson is not "AI lies", but that an agent must not be able to make destructive changes in production just because it was given the task of fixing an application. [1] [2]
2. Moltbook: the database was open
On 2 February 2026, Wiz researchers published a finding about Moltbook, a social network for AI agents whose author said publicly that he had not written a line of code. Through incorrectly configured database permissions, data could be read and modified, including roughly 1.5 million authentication tokens, 35,000 e-mail addresses and private messages. The operator fixed the access after being notified. A public key in client code is not a mistake in itself; with Supabase it is designed to be published. The mistake was the missing row-level protection in the database. There is no evidence that all the data was downloaded by an attacker outside the research. [3] [4]
3. Base44: a private application let in an outside user
In July 2025, Wiz demonstrated a login bypass in the Base44 platform. Anyone who knew an application's publicly discoverable identifier could use its interface to create and verify an account even where login via SSO was supposed to apply. The researchers verified this on several internal corporate applications. Base44 and Wix fixed the flaw within 24 hours of being notified; according to Wix, no evidence of prior abuse was found. Here it was the platform layer that failed, not necessarily the code of a specific customer. All the more reason to know which services an application relies on and how you will learn about their fixes. [5]
4. Lovable: a November sample exposed personal data
The German company Crissy Field examined 159,041 projects built on Lovable and, in a subsample, found 7,403 websites where database records containing e-mail addresses could be obtained without logging in. Not every e-mail address is secret and the sample does not represent all applications. However, the researchers also described specific cases: a forum with more than 80,000 profiles and 200,000 messages, and a provider with more than a thousand records of identity documents. They investigated the findings in cooperation with Handelsblatt, which wrote about them on 2 November 2026. The researchers do not know whether anyone misused the data. [6]

Why the sentence "check security" is not enough
A model can find many obvious errors in code. However, it does not automatically see all production secret keys, the actual hosting settings, the access history, contractual obligations and the data that only appear in operation. If the same context feeds it incorrect assumptions, it may confidently confirm even an incomplete check. A test from the perspective of an outside user is particularly important: can they get to an order, file or profile that does not belong to them?
The check needs independent layers: code review by a person, automated tests and dependency checks, a permissions test, verification of backup and restore, separate environments and a record of who approved the deployment. For sensitive data, an independent security test also makes sense. The Crissy Field research stresses that an automated scanner alone is not a substitute for expert assessment. [6]
Code that works today must be maintainable tomorrow
Security is not the only limit. A prototype may feel snappy with a hundred users, but without measurement you do not know how it will handle thousands of orders, simultaneous payments or a slow external API. You need logs, error metrics, cost limits for cloud calls and clear responsibility for updates. Can the project be exported and handed over to another team? Does it have tests and documentation? Can the developer go back to a previous version?
A good use of AI is to speed up the prototype, routine parts of the code, test proposals and research. After that, a person must be able to explain the data model, critical integrations and permission boundaries. At Faust Agency, we describe exactly this combination of AI support for developers with human code review, technical checks and appropriate tests before deployment. [7]
Minimum checklist before going live
- Data: classify what is stored; try to load someone else's records from another account and without an account.
- Permissions: check the backend, database rules and administrator roles, not just hidden buttons in the frontend.
- Environments: separate testing from production; do not give the agent production permissions for routine changes.
- Recovery: actually try restoring a backup, not just checking that one is created.
- Development: measure performance, costs and the ability to hand the project over to another team.
Vibe coding can be a good servant even in serious development. It becomes a bad master when we mistake quickly building an interface for a finished product. The difference is not made by the length of the prompt, but by verifiable checks before the application receives real data and responsibility.
We will look at access, tests, operation and the plan for further development. Read how we do custom development.
Sources and further reading
The links lead to the original announcements, reports and documentation the article is based on.
- theregister.com/2025/07/21/replit_saastr_vibe_coding_incident
- ld.replit.com/blog/introducing-a-safer-way-to-vibe-code-with-replit-databases
- wiz.io/blog/exposed-moltbook-database-reveals-millions-of-api-keys
- reuters.com/legal/litigation/moltbook-social-media-site-ai-agents-had-big-security-hole-cyber-firm-wiz-says-2026-02-02
- wiz.io/blog/critical-vulnerability-base44
- crissyfield.de/research/lovable-en
- faustagency.com/sluzby/vyvoj-na-mieru