- AI app builders get the visible path right. The failures live where you can’t see them: keys, data access, payments, simultaneous users.
- Nine checks cover most of it, and the first three need no code reading at all.
- Your score decides the move: 7–9 means fix the gaps, 4–6 means harden, 0–3 means rebuild the foundation and keep the product.
1. Why “it works” isn’t the same as “it’s ready”
Short answer: AI builders optimise for the path you click through, and the dangerous problems are off that path. A login screen that looks right, a dashboard that loads, a checkout that completes: all visible, all testable by you. Who else can read a customer’s records, what happens when two orders land in the same second, whether a secret key ships to every visitor’s browser: none of that shows up in a demo.
This isn’t a knock on the tools. They do what they are asked, and nobody asks “who else can read this row?” In 2025 a researcher scanned 1,645 apps built with Lovable and found 170 whose databases could be read, and in some cases written, by anyone, because the database access rules were missing or too loose. It was recorded as CVE-2025-48757 and rated critical. The exposed data included names, email addresses and API keys.
It isn’t one tool, either. When Veracode gave large language models 80 coding tasks with a secure and an insecure way to solve them, the models picked the insecure way in about 45% of cases, and newer models were no better at security than older ones. Code that runs is not the same as code that is safe.
We wrote about what this does to engineering teams in AI Code Generation & The Dark Tech Debt Crisis. This post is for the founder or operator who has one app, real users, and a nagging feeling.
2. The 9 checks
Each check is a question, a way to test it, and what good looks like. Checks 1 to 3 you can run tonight from a browser. The rest take a conversation with whoever has access to your code and hosting.
1. Are secret keys visible in the browser?
Test it: open your live app, view the page source or the browser’s developer tools, and search for sk_, sk-, secret and key. Payment and AI providers use recognisable prefixes, and a secret key in the browser means every visitor has it.
Good looks like: secret keys live only on the server. The browser gets publishable keys, which are designed to be public, and nothing else.
2. Can one customer see another customer’s data?
Test it: create two accounts. As the first, open a record (an order, a profile, an invoice) and copy its link. Log in as the second and open that link. If you use Supabase, check that row-level security is switched on for every table and that each table has policies.
Good looks like: the database itself refuses the request. Hiding a button in the interface is not access control; the Lovable exposure above was exactly this gap.
3. Is “paid” enforced on the server?
Test it: as a free user, go straight to a premium page or feature by its address, skipping the upgrade button. If the only thing stopping you was a hidden button, it’s open to anyone.
Good looks like: the server checks the customer’s plan on every request, and your payment provider’s webhooks are verified, so nobody can fake a “payment succeeded” message.
4. Do logins behave like a bank’s, or like a demo?
Test it: request a password reset and use the link twice; it should fail the second time. Log out and press the back button. Ask whether admin pages check for an admin on the server, or only hide the menu.
Good looks like: reset links expire and work once, sessions end on logout, and admin access is checked on every request.
5. What happens when two people do the same thing at once?
Test it: open two browsers and book the last slot, claim the same coupon or submit the same order at the same second.
Good looks like: the database guarantees only one wins, using unique constraints and transactions. Double bookings and double charges are the most common “it worked in testing” failure, because testing was one person.
6. Have you ever restored a backup?
Test it: ask when a backup was last restored, not when one was last taken.
Good looks like: automatic daily backups, point-in-time recovery switched on, and a restore you have rehearsed into a separate copy. A backup nobody has restored is a hope, not a plan.
7. Is there a ceiling on usage and cost?
Test it: ask what stops a script from calling your AI feature or sign-up form 100,000 times tonight, and who would notice.
Good looks like: rate limits per user and per IP address, a spending cap set with each paid provider, and an alert that reaches a person before the invoice does.
8. Do you know what’s in your dependencies?
Test it: list the packages your app installs. Look for any you have never heard of, especially ones the AI added. Models sometimes suggest package names that don’t exist, and attackers register those names to catch the next app that installs them.
Good looks like: versions pinned in a lockfile, automated vulnerability alerts switched on, and a person approving every new package before it ships.
9. Could someone fix it without the AI tool?
Test it: is the code in a Git repository you own? Could a developer you have never met run it locally from the README? When something errors in production, does it land somewhere you look? Is deploying one documented step?
Good looks like: yes to all four. If the only way to change the app is to keep prompting the tool that built it, you don’t own the app yet; you rent it from a chat window.
3. Score your app
Tick each check you can honestly answer “yes, handled” to. “I think so” counts as no. The score tells you which of the three moves below you are facing.
4. Fix, harden or rebuild: what each one means
None of the three means starting over. What you validated with customers (the screens, the flows, the decisions about what the product does) is the expensive part, and it stays. The question is how much of the foundation underneath needs work.
7–9: fix list. Close each unticked gap, then add an automated test for it so a future prompt can’t quietly undo the fix. This is the outcome to aim for before you spend on marketing.
4–6: harden. The app is a sound product sitting on soft ground. Put the access rules in the database, move payment checks to the server, add rate limits and real backups, and get the code into a repository a developer can work in. The product doesn’t change; what it stands on does.
0–3: rebuild the foundation. Keep the interface and the product decisions, and replace the parts that carry risk: the data model, logins and permissions, payments. Patching a foundation like this one prompt at a time tends to fix one thing and break two. A deliberate rebuild of the core is usually faster and much cheaper than a breach. We make the wider case for operators owning their software, rather than prompting it, in The Operator’s Dilemma.
5. FAQ: quick answers
Is it safe to run a business app built with vibe coding?
It can be, but not by default. AI app builders optimise for the path you click through in a demo. Security rules, payment checks, simultaneous users and backups are invisible on that path, so they are often missing. The app becomes safe once someone has checked those things on purpose.
Are apps built with Lovable, Bolt, Cursor or Replit secure?
They can be, but it depends on what was asked and what was checked. A 2025 scan found 170 of 1,645 Lovable-built apps with databases anyone could read (CVE-2025-48757), and Veracode found AI-written code introduced a serious flaw in about 45% of test cases. Treat any AI-built app as unreviewed until someone has reviewed it.
How can I tell if my AI-built app has a security problem?
Run the first three checks above: search your live page source for secret keys, use two accounts to see if one can open the other’s records, and try a paid feature from a free account by going to it directly. If any of them succeeds, fix it before more users arrive.
Should I rebuild my vibe-coded app from scratch?
Usually not from scratch. Keep the screens, flows and product decisions you validated. If most checks fail, rebuild the foundation (data model, logins, permissions, payments) underneath them. If only a few fail, fix those and add tests so they stay fixed.
How long does it take to make a vibe-coded app production-ready?
It depends on your score. A short fix list closes quickly, hardening is a focused piece of work, and a foundation rebuild takes longer but keeps the product. An independent audit that ends in a fix, harden or rebuild call with a scoped plan is the fastest way to know which you are facing.
Scored under 7, or not sure how to answer half of them?
Our 2-week technical audit runs these nine checks and the rest of the list on your actual code and hosting, and ends with a clear call: fix, harden or rebuild, with a scoped plan either way.
Sources
- NIST National Vulnerability Database, CVE-2025-48757 (Lovable row-level security, 2025)
- Superblocks, “Lovable Vulnerability Explained: How 170+ Apps Were Exposed”
- Veracode, 2025 GenAI Code Security Report (press release, July 2025)
- Wikipedia, Vibe coding