Vibe Coding Risks: What Can Happen After You Launch

In short: An app built with AI comes together fast. Its gaps are often found by someone else first. Public cases show what happens then: open databases, misused keys and duties under the GDPR. With my clients, I have always found and closed these gaps before launch so far. Here is how you can do the same.

By Michael Kaiser ·

What are the risks of vibe coding?

With Lovable, Base44, Cursor or Claude Code, an app comes together in a few days. It runs, it looks good, and the first users sign up. What easily gets lost: the AI builds what you ask for. It doesn’t check on its own who may see which data.

In my work with clients, I almost always find gaps before launch: open databases, keys in the code, functions anyone can call without signing in. Nothing has happened to my clients so far, because we found and closed the gaps before going live. What happens when nobody does that is shown by public cases. Four consequences come up again and again:

  • Strangers read data that isn’t meant for them.
  • Strangers change or delete data.
  • Strangers use your keys, at your expense.
  • If personal data is involved, you have duties under the GDPR.

What happens when the database is open?

At the end of January 2026, researchers at Wiz reported a flaw in Moltbook, a social network for AI agents. Its founder had written that he didn’t write a single line of code himself. The site’s code contained the database’s public key. Supabase is designed that way, but it is only safe with rules that decide who may read what. Those rules were missing. With the key, anyone could read and change every table. According to Wiz, about 1.5 million access tokens, about 35,000 email addresses and private messages were exposed. After the report, everything was closed within a little over three hours.

In February 2026, The Register reported on a learning app that ran on Lovable and was even featured there. A security researcher found that anyone could fetch all 18,697 user records without signing in. Accounts could also be deleted, exams graded and emails sent to all users. The cause was an inverted check: it locked out signed-in users and let everyone who wasn’t signed in through. Lovable pointed out that the app also contained code Lovable didn’t generate.

A scan by the security company Escape from 2025 shows these are not isolated cases. It examined more than 5,600 public apps, most of them from Lovable, plus apps from Base44 and other platforms. Escape found more than 2,000 vulnerabilities, more than 400 exposed secrets and 175 cases of exposed personal data, including medical records and IBANs. Most of the vulnerabilities could be reached without signing in.

In both cases, reading was not the only problem. Where anyone may write, anyone can also change and delete.

How to prevent it: Without signing in, your app must not show any data, and every person sees only their own. How to check both is in our checklist before you launch. For Lovable and Base44 there are separate guides: Is Lovable safe? and Is Base44 safe?

What happens to a key in the code?

Many apps built with AI use outside services, such as OpenAI for text or Stripe for payments. For that, the app needs a key. If it sits in the code the browser loads, anyone can read and use it. With my clients, I find such keys often.

  • OpenAI names the consequences of a leaked key itself: data loss, unexpected charges, a depleted monthly quota and interrupted access. That is why requests should always go through your own backend.
  • Stripe gives the secret key unrestricted access to all of its APIs. According to Stripe, keys can also be used to create payouts and transfers and to change payout destinations. Whoever gets hold of it can harm your business, Stripe writes. Only the publishable key, which starts with pk_, may appear in the browser.

One exposed key can lead to more. At Moltbook, some of the private messages contained OpenAI keys in plain text.

How to prevent it: Keys belong in your platform’s protected storage and are read only in the backend. If a key was ever in the code, replace it with a new one at the provider. Otherwise the old one keeps working. Stripe also recommends restricted keys that can do only what your app needs.

Can users get around your payments?

If an app checks only in the browser whether someone has paid, that check can be bypassed. In 2025, Imperva found paid features in Base44 itself that were only enforced in the browser. Base44 fixed this.

At one client, I found something similar before launch: a payment function that checks subscriptions and that anyone could run without signing in.

How to prevent it: Whether someone has paid is decided by the server, never by the browser. And every function that deals with money or subscriptions first checks who is signed in.

What does the GDPR require when data is exposed?

If your app processes personal data, such as names or email addresses, and falls under the GDPR, three articles matter here:

  • Art. 32 requires appropriate technical and organisational measures in advance, matched to the risk.
  • Art. 33 requires you to notify the competent supervisory authority of a breach without undue delay and, where feasible, within 72 hours of becoming aware of it. The exception is a breach that is unlikely to result in a risk to the people affected. You also have to document every breach, even if you don’t report it.
  • Art. 34 requires you to also inform the people affected without undue delay if the breach is likely to result in a high risk to them.

Art. 33 makes no distinction based on the size of your company. This is not legal advice. In a real incident, ask your supervisory authority or a data protection lawyer.

Who finds the gaps?

In the cases above, it wasn’t the operator who noticed the gap, but someone from the outside: researchers at Wiz, a security researcher, a scan. Escape only checked from the outside and didn’t break anything.

That matches what I see: without a targeted check, an open database usually goes unnoticed for a long time, because the app works fine. That is why it pays to look at your app from the outside yourself, before someone else does.

How do you prevent this before launch?

Three checks cover the cases above:

  1. Without signing in: Open your app in a private window, visit every page that shows data and also type its address in directly. You must not see anything that isn’t meant to be public.
  2. With two accounts: Create account A and account B. Account B must neither see nor change account A’s records.
  3. Keys: Have your AI list every key and tell you where each one is stored. None may sit in the code the browser loads.

The full list with six points is in the checklist before you launch.

What to tell your AI: “Before we go live, check every table and every function. Without signing in, nobody sees data, every person sees only their own, and no key sits in the code the browser loads. List everything that deviates from this.”

Can this be handled while you build?

The checks above start once the app exists. builtSecure starts earlier. It gives your AI these rules while it builds: data starts private, every function checks sign-in first, and keys go into protected storage. And it asks you what only you can know, such as who may see which data.

builtSecure is still at an early stage. If you want to try it, you can start for free below.

Frequently asked questions

Is vibe coding unsafe?

Not in itself. The AI quickly builds what you ask for, but it doesn't check on its own who may see which data. The typical gaps are well known, and you can check for them and close them before you launch.

What do I have to do if my app exposed data?

Close the gap, replace any affected keys and document everything. If personal data was involved and the GDPR applies, you usually have to notify the supervisory authority, where feasible within 72 hours. Get legal advice on this.

How do I know whether my app is open?

Often you won't notice on your own, because the app works fine. So check it from the outside, without signing in and with two accounts, and have your AI list every key.

Sources

  1. Wiz: Hacking Moltbook: AI Social Network Reveals 1.5M API Keys, retrieved on
  2. The Register: AI-built app on Lovable exposed 18K users, researcher claims, retrieved on
  3. Escape: Methodology: 2k+ Vulnerabilities in Vibe-Coded Apps, retrieved on
  4. OpenAI: Best practices for API key safety, retrieved on
  5. Stripe: API keys, retrieved on
  6. Imperva: Critical Flaws in Base44 Exposed Sensitive Data and Allowed Account Takeovers, retrieved on
  7. Art. 32 GDPR: Security of processing, retrieved on
  8. Art. 33 GDPR: Notification of a personal data breach to the supervisory authority, retrieved on
  9. Art. 34 GDPR: Communication of a personal data breach to the data subject, retrieved on

Security you never have to ask for. Free during early access.

Start for free

Rather get news first? Subscribe and we'll email you now and then.

More posts