You’ve used AI to build an app in a short time that works and gets people excited. That’s an achievement, and for a prototype the pace is exactly right. With the first real customer, though, the question changes: no longer “does it work?” but “who can see what, and what happens if something goes wrong?” The database then holds the names, addresses and orders of people who trust you, and protecting them is your responsibility, not the tool’s.
What studies on AI-built apps show
- Vulnerabilities in the code: Veracode had over 100 AI language models solve 80 programming tasks (press release of July 30, 2025). In 45 percent of cases the code contained a vulnerability from the OWASP Top 10, the list of the most common security risks in web applications. In 86 percent of cases it wasn’t protected against cross-site scripting. Veracode sells testing tools itself, and the measurements were based on predefined tasks, not finished apps.
- Vulnerabilities in finished apps: Escape examined over 5,600 publicly accessible AI-built apps, around 4,000 of them built with Lovable (October 29, 2025). It found over 2,000 vulnerabilities, over 400 exposed secret keys and 175 cases involving personal data, including medical data and IBANs. Because the scan was passive only, these are lower bounds.
- Always the same mistakes: Wiz describes four typical security patterns in AI-built apps (September 18, 2025): the login is only checked by the browser, secret keys sit in the shipped JavaScript, the database access rules (Row Level Security) are switched off or too permissive, and internal tools with real data are publicly accessible without a login.
- Invented packages: In a study at USENIX Security 2025, commercial AI language models writing code suggested software packages that don’t exist in at least 5.2 percent of cases, open-source models in 21.7 percent. Anyone who registers such a name can get malicious code into any app that adopts the suggestion unchecked.
- Almost right: In the 2025 Stack Overflow developer survey, 66 percent of developers named AI solutions that are “almost right, but not quite” as a frustration, more often than any other. Exactly these errors go unnoticed in the demo.
Four incidents with AI-built apps and what they show
| Incident | What happened | What it shows |
|---|---|---|
| Lovable, CVE-2025-48757 (May 2025) | Access rules that were too weak in apps generated with Lovable allowed reading and writing arbitrary tables without a login. Rated 9.3 out of 10. Lovable disputes the entry: every customer is responsible for protecting their own data. | Your app’s access rules are your responsibility, not the platform’s. |
| Base44 (July 2025) | Login and single sign-on of private apps on the AI app platform Base44 could be bypassed with the publicly visible app ID. Base44 fixed the vulnerability in under 24 hours; the operator found no signs of abuse. | The AI platform itself can have vulnerabilities as well. You depend on how quickly it responds. |
| Replit and SaaStr (July 2025) | During an explicit code freeze, Replit’s AI agent deleted SaaStr’s production database, with data on over 1,200 executives and over 1,190 companies. The data could be restored manually. Replit has since introduced automatic separation of development and production databases. | An AI agent doesn’t belong on the live database with full rights. |
| Moltbook (February 2026) | Moltbook’s Supabase key was in the website’s JavaScript, and Row Level Security was missing. Anyone could read and write without a login: 1.5 million API tokens and 35,000 email addresses were exposed. By his own account, the founder hadn’t written a single line of code himself. | The public Supabase key is only as secure as the rules behind it. |
The four incidents with AI-built apps are no reason to panic, but they show a pattern: the vulnerabilities rarely lie in sophisticated code, but in settings nobody looked at.
Self-test for your AI-built app: ten questions, no programming knowledge needed
You don’t need to read any code for the self-test of your AI-built app, just access to your accounts and a second browser window. Test in your own app and, if there is one, on the test environment.
- Is every account in your company’s name? The AI platform workspace, GitHub, Supabase or Firebase, domain, hosting such as Vercel or Netlify, Stripe. In each account, look under settings or billing to see who the owner is and whose credit card pays.
- Is the code in a repository you have access to? Lovable, for example, syncs the code to a GitHub account or organization of your choice. If it only sits in a freelancer’s account, you lose access when they leave.
- Does your database show warnings? Supabase flags tables without Row Level Security in the Table Editor and sends notices by email. With Firebase, in the worst case the Security Rules contain a rule that allows everyone everything, which according to the Firebase documentation is never meant for production.
- Does a second account see other people’s data? Create two test accounts, enter an order or a profile with the first one and log in with the second. Do you see the data? Change a number or ID in the address bar: does someone else’s record appear?
- What does someone see without logging in? Open the app in a private browser window and go directly to pages meant only for logged-in users, such as the admin or dashboard. With Lovable, active preview links bypass the access settings of the published app as long as they aren’t protected.
- Have you ever copied a secret key into the chat? OpenAI, Stripe or database keys belong on the server, not in the AI chat, not in the code and not in a publicly visible project. If one ended up there, replace it.
- Does the AI work directly on the live database? Is there a test environment with its own database, or does every change land with your customers right away?
- Is there a backup, and have you ever restored it? Supabase only backs up daily from the Pro plan on, for seven days; on the Free plan you export the data yourself. Uploaded files such as images or PDFs aren’t included in the database backups.
- Do you know where your data is stored? Region of the database and hosting: Switzerland, the EU or the USA? For personal data of Swiss customers that’s no minor detail; more on this in the guide Who owns your app and your data?
- Do you notice an outage before your customers do? Do you get an alert when the app is unreachable or throws errors, or do you find out from a customer email?
How to evaluate the self-test: Every answer that points to a gap and every “I don’t know” is a task, not a drama. For questions 1, 2 and 8 to 10 that is a “no,” for questions 3, 4, 6 and 7 a “yes,” and for question 5 any page meant for signed-in users that opens without a login. The questions on database warnings, other people’s data, access without login and keys in the chat (3 to 6) concern your customers’ data and should be settled before the first real customer. The questions on accounts and repository (1 and 2) decide whether you can act when someone leaves. The rest belongs in the next few weeks.
What a reviewer adds for an AI-built app
The self-test for AI-built apps shows what’s visible from the outside. A review by Unique-P goes into the code and the configuration: before launch as a Go-Live Check with security audit, during a takeover as part of the Takeover Assessment.
- Rules versus code: The live access rules of every table and every file storage are queried read-only and compared with what the code expects. With Supabase, this includes the grants (GRANTs): since October 30, 2026, new tables are only reachable via the API after an explicit grant, and you still have to set up the access rules yourself.
- Login and permissions on the server: Does every action check on the server who is allowed to perform it, or only the interface? Can someone else’s record be opened by changing an ID?
- Search for keys everywhere: in the shipped JavaScript, in the entire Git history and in the environment variables. According to Supabase, the secret Supabase key bypasses every access rule. Whatever turns up gets replaced.
- The app’s edges: rate limiting, protection against forged forms and server requests (CSRF, SSRF), security headers, CORS and validation of every input.
- Packages: Does every package really exist, is it maintained, and does it have known vulnerabilities? For apps with Next.js or React, this includes the security advisories of recent months; see Next.js and React: vulnerabilities 2025/2026.
- Operations: separate test and production environments, the AI agent’s permissions, backups with a tested restore, monitoring, data region, tests and running costs.
- Independence: Can the app be built and run outside the AI platform, and are all accounts in your company’s name?
A review of an AI-built app by Unique-P isn’t a penetration test: no attack on the whole system, no scanner load, no exploiting of vulnerabilities. An access test with two test accounts only follows with your written permission, read-only and, where possible, on a test environment.
At the end of the review there’s a report with priorities; with the Go-Live Check from Unique-P, it includes a clear recommendation on whether the app can go live, and a re-check after the fixes. What happens after that, with securing the app, moving the accounts to your company and ongoing support, is described on the AI-built app takeover page.
If something has already happened to your AI-built app
If you have signs that someone has read or changed your app’s data, a different order applies: close off access, replace keys, preserve evidence and only then clean up. The first steps are in the guide Website or application hacked; you can get help through the emergency fix from Unique-P.
10 questions
Is your AI-built app ready for real customers?
The self-test for AI-built apps asks the ten checklist questions, from accounts and repository to access rules and keys to backup and monitoring, and shows with a traffic light whether your app is ready for real customers. Every answer that points to a gap and every “I don’t know” is a task, not a drama, so “I don’t know” counts the same as a gap.
How the self-test’s traffic light works
- Not ready yet
At least one of questions 3 to 6 points to a gap or is answered with “I don’t know”: database warnings, other people’s data, access without login, keys in the chat. These four questions concern your customers’ data and should be settled before the first real customer.
- Ready after a few tasks
Questions 3 to 6 about your customers’ data show no gap, but other questions still have something open. Accounts and repository (questions 1 and 2) decide whether you can act when someone leaves; test environment, backup, data region and monitoring (questions 7 to 10) belong in the next few weeks.
- Ready
None of the ten questions in the self-test points to a gap or is answered with “I don’t know.”
Open items in the self-test, by urgency
Review by a person
The self-test for AI-built apps shows what’s visible from the outside. What it leaves open, a developer checks in the code and in the database’s live rules during the Go-Live Check & Security Audit from Unique-P, read-only and without attacks. Within 5 business days of full access, you get a report with a clear recommendation on whether the app can go live, plus a re-check after the fixes.
More on the Go-Live Check & Security AuditSources
- [1]AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks · Veracode, press release, July 30, 2025
- [2]Methodology: How we discovered vulnerabilities in apps built with vibe coding · Escape, October 29, 2025
- [3]Common Security Risks in Vibe-Coded Apps · Wiz, September 18, 2025
- [4]CVE-2025-48757 · Tenable, May 30, 2025
- [5]Critical Vulnerability in Base44 · Wiz, July 29, 2025
- [6]AI-powered coding tool wiped out a software company's database · Fortune, July 23, 2025
- [7]Exposed Moltbook Database Reveals Millions of API Keys · Wiz, February 2, 2026
- [8]We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs · Spracklen et al., USENIX Security Symposium 2025
- [9]2025 Developer Survey, AI · Stack Overflow
- [10]Understanding API keys · Supabase
- [11]Breaking change: tables not exposed to Data and GraphQL API automatically · Supabase, April 28, 2026
- [12]Supabase Security 2025 Retro · Supabase, January 7, 2026
- [13]Database Backups · Supabase
- [14]Get started with Cloud Firestore Security Rules · Firebase
- [15]Privacy and security settings · Lovable