In short
The problem
- Lovable, Bolt, Replit and Cursor build a working app in an evening. For a prototype that is more than enough.
- But working code isn't the same as secure code. In 2025, one in ten apps on Lovable's showcase had data open to strangers.
- AI agents have already deleted companies' production databases. And data protection law doesn't ask who wrote the code: the owner of the app is responsible.
The solution
- Build a serious product with someone who knows its field: AI won't point out a detail you didn't ask about.
- Vibe‑code prototypes, demos and internal tables freely: it's fast and cheap.
- Anything that stores customer data, takes payments or runs every day should be built with an engineer.
- The best combination is the speed of AI plus a person who reads every change. That's how we work.
We get asked more and more often: why pay a studio when Lovable builds an app in an evening? We write code with AI every day ourselves, so our answer isn't "vibe coding is evil". The answer is about where vibe coding ends. And about the fact that AI can't know your field for you.
What vibe coding is
The term was coined by Andrej Karpathy, one of the founders of OpenAI, in February 2025. Vibe coding is when you "fully give in to the vibes" and "forget that the code even exists": you ask the AI, hit "Accept All" and don't read what it changed. Karpathy himself wrote back then that for "throwaway weekend projects" it's "not too bad"1.
A year later he clarified: programming through AI agents is becoming the default for professionals too, "with more oversight and scrutiny". The goal is to get the speed of agents without any compromise on quality. He suggested calling that kind of work agentic engineering rather than vibe coding2.
The internet answered with memes. One of the most popular is about what happens after "Accept All"3:

Where vibe coding is enough
For many tasks vibe coding is the best choice:
- A prototype. To show an idea to an investor, your team or your first customers.
- A demo or a landing page. A page, a form, a simple calculator.
- Internal tools. A table, a report, an export with no one else's personal data in it.
The scale is already huge. Lovable says 70 million projects were started on it in two years, and at one company around 300 employees built more than 1,400 apps themselves in five months5. Among developers, 73% use AI every day6.
The main thing: AI can't know your field for you
A serious product isn't just code. It is also knowledge of the field it works in: laws, platform requirements, how money and documents flow, what customers expect. AI is very good at doing what it's asked to do. But it won't raise a detail you don't know about on its own. And if you don't know about it, you won't ask.
Two examples from our own work. In Kvasir, our analytics for restaurants, supplier invoices arrive from Serbia's e‑invoicing system, and the software has to read them in a way that doesn't mark them as read on the supplier's side. In Mosena, a mental wellbeing app, a worrying entry has to stop the analysis and show verified helpline numbers, and Apple reviews apps like this more strictly4. A model won't come up with either of these on its own: the people who know them are the ones who have worked in that field.
Code is no different. If you don't know a database needs access rules, you won't ask the AI to add them. Here is what happens when that's the case.
Where the problems begin
Data open to everyone
An app built in an evening needs a database. And a database needs rules: who can read and change what. AI often doesn't set them up, and the author doesn't know they need checking.
In 2025 a researcher checked 1,645 apps from Lovable's showcase. In 170 of them, roughly one in ten, the access rules were weak: personal data, service keys and payment details were exposed. On one site he marked an order as paid himself, bypassing the payment system7. The vulnerability was assigned the ID CVE-2025‑48757: outsiders could read and change any table in the generated sites8. In November 2026 Lovable itself wrote that access rules that are too loose are the most common issue in apps on its platform9.
In early 2026 the founder of the social network Moltbook wrote that he hadn't written a single line of code for it. Its database turned out to be open for reading and writing: 1.5 million access keys, 35,000 email addresses and private messages leaked10.
The code works but isn't secure
Software can do everything you need and still leave a hole. Veracode, a company that sells code security testing, checked 18 models in October 2026: 62% of their code was secure. That's the best result since 2025, but roughly 4 tasks in 10 still produce vulnerable code11. In a Carnegie Mellon University study an AI agent solved 57% of real tasks correctly, but only 11.8% of its solutions were secure12.
Worst of all, AI makes people more confident. In a Stanford experiment, participants with an AI assistant wrote noticeably less secure code and were more likely to believe it was secure13.
An agent deletes the production database
In July 2025 Replit's AI agent deleted SaaStr's production database during a code freeze. Replit's CEO replied publicly: "@Replit agent in development deleted data from the production database. Unacceptable and should never be possible"14. In April 2026 an agent in Cursor deleted the production database of the startup PocketOS in 9 seconds with a single command, without asking for confirmation15.
In both cases the agent had permissions it should never have been given. That isn't a model error but a design error: the production database wasn't separated from experiments.
The code is hard to change six months later
An app lives longer than one evening: a month later you need a new feature, six months later a different payment provider. GitClear analysed 623 million code changes from 2023‑2026: duplicated blocks grew by 81%, while the reworking of existing code fell several‑fold16. Code like that grows instead of getting better, and every change costs more.
The law doesn't ask who wrote the code
If an app stores data about people in the EU, its owner is responsible under the GDPR. The owner must build data protection into the design of the app and ensure security appropriate to the risk, and the fine for breaching these articles can reach 10 million euros or 2% of worldwide annual turnover17. A breach has to be reported to the regulator within 72 hours.
Lovable says it plainly: users don't automatically inherit the platform's certifications, and you have to build the protections the GDPR requires into your app yourself18.
What the engineer who isn't in your AI chat does
You don't need an engineer to type code. AI writes code fast. The engineer is responsible for what AI won't ask about:
- The field. Knows or finds out the rules of your field before writing code.
- Access. Who sees what in the database, with the rules checked on every table.
- Production kept apart. Experiments run on a copy, there are backups, and restoring from them has been tested.
- Agent permissions. Exactly what's needed: no deleting production data and no sending data out without human approval.
- Every change read. Not "Accept All", but understanding what changed and what it breaks.
- Testing. Security tests, and tests for what happens as you grow.
- The law. Where the data lives, who is responsible for it and what to do in a breach.
- Maintenance. Six months from now someone has to understand this code and change it without fear.
How we work
We write code with AI every day: that's how both our app Mosena and our restaurant analytics Kvasir were built. But we start by understanding the business: how its money, documents and rules work. And an engineer reads every change. Important rules live in the software, not in a model's promise: in Mosena it's the code, not the AI, that puts a user's quotes into a card. Production data is kept apart from experiments, and a new version reaches people only after testing.
That way AI brings the speed and the engineer brings the reliability. This is what Karpathy calls agentic engineering.
Vibe‑code it or call a studio
| Task | Vibe coding | With an engineer |
|---|---|---|
| Prototype, demo, landing page | yes | not needed |
| Internal tool with no personal data | yes | check access |
| Customer data, payments | risky | yes |
| A system the business can't run without | no | yes |
A common path is to vibe‑code a prototype, test the idea on people and then build the product with an engineer. That's fine: the prototype shows what's needed, and the engineer makes sure it doesn't break.
What to take away
- Know the field. AI won't point out a detail you didn't ask about. A serious product should be built by someone who knows how your field works, or with their help.
- Prototypes: vibe‑code them freely. It's fast, cheap and shows an idea better than any presentation.
- Working isn't the same as secure. Don't trust customer data and money to code without an engineer.
- Give agents minimal permissions. Production kept apart, deleting and sending data out only with human approval.
- The owner is responsible. By law you answer for the data, not the platform and not the AI.
How MagLab helps
Vibe‑coded a prototype and want to turn it into a product? We'll start with a small first stage: we'll go through the prototype, find what's risky and what can stay, and propose a plan. And if you're starting from scratch, we'll build an app or an AI system at the same speed, but with an engineer who is responsible for the result.
Sources
-
Andrej Karpathy, the vibe coding post, X, 2 February 2025.
-
Andrej Karpathy, a post a year later, X, 4 February 2026.
-
Catalin Pit, "Vibe coding is easy. Vibe debugging is the hard part.", X, 3 March 2025.
-
Lovable, Two years of Lovable, 18 November 2026: the company's own figures.
-
Stack Overflow, Developer Survey 2026: AI.
-
Matt Palmer, Statement on CVE-2025‑48757, 29 May 2025: 170 of 1,645 projects on the Lovable Launched showcase.
-
NIST, CVE-2025‑48757. Lovable disputes the entry: in its view each customer of the platform is responsible for protecting their app's data.
-
Lovable, Find it, fix it, ship it, 10 November 2026.
-
Wiz, Exposed Moltbook database reveals millions of API keys, 2 February 2026.
-
Veracode, first meaningful gain in AI code security since 2025, 29 October 2026: research by a company that sells code security testing.
-
Carnegie Mellon University, SusVibes, ICML 2026: 186 real tasks, SWE‑Agent with Claude 4 Sonnet.
-
Perry et al., Do Users Write More Insecure Code with AI Assistants?, ACM CCS 2023: 47 participants.
-
Jason Lemkin, post about the lost database, 18 July 2025; Amjad Masad, Replit's reply, 20 July 2025.
-
PocketOS founder, post about the incident, 26 April 2026.
-
GitClear, The AI Code Quality Maintainability Gap, 2026: research by a company that sells code analysis.
-
GDPR, EU Regulation 2016/679: Articles 25, 32, 33 and 83(4).
-
Lovable, Lovable compliance and your app, 21 October 2026.


