A vulnerability record published on May 30, 2025 carries a sentence most records never need. It describes an insufficient row-level security policy in one AI app platform. Unauthenticated strangers could read or write arbitrary database tables of the sites it generated. The severity score is 9.3 out of 10. Then the record adds that the supplier disputes it, because each customer “accepts a responsibility over protecting the data of their application.”
Read the dispute twice. The platform is not claiming the hole was shut. It is claiming the hole was yours. A vendor has answered this entry’s title in writing, in a public database, before I argue anything at all. Responsibility moved to the buyer at signup, quietly, as a term of use.
So the question needs rebuilding before it can be answered. This entry does that in four moves. What the research measured, and what it did not. The failure modes in the language of the person who signs the checks. The line between code that was reviewed and code that was only generated. And the apps that need none of it.
§1The question under the question
Safety is not a property of the thing that typed the code. It is a property of who read it afterwards, and who answers for it.
Nobody asks this question about a calculator. They ask it about software that will hold customer records, price a quote, or move money. The worry is real and it is specific. What people say is “is AI code safe.” What they mean is narrower.
They mean: can this run the part of the business that cannot be wrong. Payroll. Invoices. The customer list. The stock count that purchasing trusts on a Friday. Those systems have a property the demo never had, which is that being wrong costs money on a schedule.
Put that way, the question stops being about authorship. A junior developer writes insecure code. A senior developer writes insecure code on a bad week. An offshore team writes insecure code that nobody at your company has opened. In each case the risk lives in the same place: code that reached production without an accountable person reading it.
The machine changes the volume, not the category. It produces more code, faster, from people who cannot evaluate it. That is a real shift and it deserves a real answer. It is still not a new kind of danger, and treating it as one leads to the wrong purchase.
§2What the research actually measured
Two papers get cited in every argument about this, usually without their numbers and always without their limits. Both are worth reading, and both say something narrower than the headlines built on them.
The first is Pearce and colleagues, “Asleep at the Keyboard?”, dated August 20, 2021 and read September 21, 2026. The method was deliberate. They wrote 89 scenarios drawn from MITRE’s Top 25 weakness list, and had GitHub Copilot complete them, producing 1,689 programs. Of those, the paper reports “approximately 40% to be vulnerable.”
Two limits belong with that number, and they are mine to state rather than the paper’s. It measured one assistant in 2021, and the models have changed since. It also fished where the fish were, by design: the scenarios were chosen to sit near known weakness classes. That is the right way to test a security question. It is the wrong way to estimate what fraction of a real application will be broken. The number is useful as a floor on plausibility, not as a forecast. It establishes that the failure mode is common enough to plan around, which is all a buyer needs from it.
The second paper is stranger and more useful. Perry and colleagues, “Do Users Write More Insecure Code with AI Assistants?”, dated November 7, 2022 and read the same day. It was a user study rather than a code survey, run on an assistant built from an OpenAI model of that era. Participants with the assistant “wrote significantly less secure code than those without access.”
The finding that matters comes next in the same abstract. Those participants “were more likely to believe they wrote secure code.” Less secure, more confident. A defect rate is something a business can budget for once it knows the number. Misplaced confidence is the thing nobody budgets for, because by definition nobody has noticed it yet.
And then the paper hands over the constructive half, which almost nobody quotes. Participants “who trusted the AI less and engaged more with the language and format of their prompts” produced “code with fewer security vulnerabilities.” The variable that moved the outcome was not the tool. It was how hard the human worked on the output.
§3Four failure modes, in an owner’s language
Security writing fails owners by staying abstract. Here are the four that actually show up in generated business apps, each in the terms a person without a technical background can check.
- The key left in the door. Software needs passwords to reach other services: a payment provider, an email sender, a database. In a generated app these sometimes sit in the part of the page every visitor downloads. Anyone who opens the browser’s developer tools can read them. The fix is ordinary and the discovery is usually accidental.
- Doors with no lock. The application checks who you are when you log in, then never checks again. Ask it for order 4,102 and it hands over order 4,102, whether or not the order is yours. This is what the May 2025 record describes, in the language of database policy, and it is the most common serious fault in prompt-built software.
- Input taken at face value. Whatever a visitor types is passed along and trusted: into the database, into a page another user will load, into a command. A name field becomes a way to read the customer table. The name for this is older than the web, and the machine reproduces it because the training material is full of it.
- Nobody watching. Nothing records what changed, nothing alerts a human, nothing has ever been restored from backup. This one is not a vulnerability. It is the reason the other three run for months before anyone learns about them.
Notice what all four have in common. None requires a sophisticated attacker, and none announces itself. The application keeps working perfectly while any of them is true, which is precisely why the owner’s sense that things are fine carries no information.
§4The dispute, read closely
Back to the record, because its wording repays attention. The identifier is CVE-2025-48757, published May 30, 2025, scored 9.3 of a possible 10. The described fault is an insufficient row-level security policy that “allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites.”
The supplier’s attached dispute says each customer “accepts a responsibility over protecting the data of their application.” As a commercial position it is defensible. Platforms hand you a tool, and what you build with it is yours. The pillar entry on whether these tools can build a business app covers the scan behind this record. It carries the sorting questions that follow from it too.
As an answer to a buyer, though, the sentence is the entire argument of this page. Responsibility for a security property you were never shown, never tested, and could not evaluate has already been assigned to you. Not by negotiation. By the terms you agreed to while building something in an afternoon.
That is worth separating from blame. The platform is not behaving badly here; it is behaving exactly like a supplier of materials. A lumber yard is not responsible for a roof. What it means is that the accountable party is whoever you can name, and if you cannot name one, the answer is you.
§5Reviewed code, and code that was only generated
Here is the line this entry sells, stated plainly so it can be argued with. Reviewed AI-generated code, running under a named person who answers for it, is ordinary software. Unreviewed code with nobody attached is the risk, and that sentence is true no matter what produced it.
I write software this way myself and say so on the vetting page. Machines type a great deal of what I ship. Every line of it is read, tested, and signed for by one person. That person’s name is on the invoice, and the 60-day warranty covers the bugs I introduce. The tool changed how fast the typing goes. It did not move the accountability anywhere.
The Perry finding supports the practical version of this better than any argument of mine. The participants who did best were the ones who treated the output as a draft to be interrogated. That is what review is. It is also the step the prompt-to-app pitch quietly removes, because removing it is the product.
So the useful question to ask about any piece of software is never “what wrote this.” It is “who has read this, and what happens to them if it is wrong.” Those two answers predict everything that follows. Response time when something breaks. Whether anyone can change it next year. Whether the access rules were ever read by someone who knew what to look for.
§6The apps that are fine
Now the paragraph the security industry will not write for you, because alarm sells better. A large share of AI-built apps need none of the above, and paying for a review of them would be waste.
The test is what the application touches. An internal tool that reads a spreadsheet you already own and draws a chart holds no secrets and takes no input from strangers. A prototype that exists to prove a workflow before anyone commits money is doing its job precisely by being disposable. A personal utility with one user, on one machine, is not an attack surface in any meaningful sense. The same goes for a script that reformats a report you already receive by email every Monday.
Three conditions make the difference, and they are checkable in a minute. Does it hold data belonging to someone other than you. Can a person you have never met reach it over the internet. Would being wrong for a week cost real money. If all three answers are no, run it, change nothing, and spend the money elsewhere.
This matters for a reason beyond fairness to the tools. An owner told that everything is dangerous learns to ignore the warning. The one application holding real customer records then gets the same shrug as the chart-drawing script. Precision about which systems matter is what makes the warnings usable.
§7Five questions before it runs the business
If the three conditions above came back yes, the application has crossed into the part of the business that cannot be wrong. Five questions settle whether it belongs there. None of them requires reading code, and every one has a wrong answer that is easy to hear.
- Who read this, and what is their name? A name, or a company with a name inside it. A wrong answer describes a tool instead of a person. The vetting entry puts this same question to any developer you are considering, for the same reason.
- What happens if it is wrong on a Tuesday? You want a response time and a named obligation, in writing. Warranties and care arrangements are structures. Availability described as a mood is not one.
- Has anyone checked who can see what? This is the access-rule question from §3, asked in plain terms. If nobody has opened that specific question and written down the answer, it has not been checked.
- Where do the keys live? Payment and email credentials belong on a server, not in a page the public downloads. Someone should be able to say which, immediately, without looking it up.
- What has been restored from backup, and when? Backups that have never been restored are a belief rather than a fact. A single tested restore, on a scratch machine, converts one into the other.
Five answers you can gather in an afternoon, without hiring anyone. That is why they come in this order. Four of the five cost nothing to establish, and together they tell you whether the fifth conversation is worth paying for.
§8The card, and the door
The card. AI-generated code is as safe as the review it received and the person who answers for it, and no safer. The 2021 Copilot study found roughly 40% of 1,689 programs vulnerable across 89 weakness-shaped scenarios. The 2022 user study found people writing less secure code while feeling more confident about it, and doing better exactly when they interrogated the output. A 9.3-rated record from May 2025 shows a platform assigning that responsibility to its customer in writing. Sort your own application by what it touches, ask the five questions, and act only on what the answers show.
Here is the door. Book a free 20-minute call and bring the application’s address, what it holds, and who can reach it. Twenty minutes is enough to place it on the right side of §6. When the answer is “this is fine, spend nothing,” that is the whole verdict. If the answer is that customer data is sitting behind rules nobody has read, I will say that plainly too.
If it turns into a build, most projects land between $8,000 and $25,000, fixed at quote stage, in 6–8 weeks. The repo sits in your account from day one and the 60-day warranty covers the bugs I introduce. I reply within 24 hours, personally. The machine that typed your application will not answer the Tuesday question; a person has to.
- Pearce, Ahmad, Tan, Dolan-Gavitt, Karri — “Asleep at the Keyboard? Assessing the Security of GitHub Copilot’s Code Contributions” (arXiv:2108.09293, dated August 20, 2021): 89 scenarios drawn from MITRE’s Top 25 weakness list, 1,689 programs, “approximately 40% to be vulnerable” (read September 21, 2026) — arxiv.org/abs/2108.09293
- Perry, Srivastava, Kumar, Boneh — “Do Users Write More Insecure Code with AI Assistants?” (arXiv:2211.03622, dated November 7, 2022): participants with an assistant “wrote significantly less secure code” and “were more likely to believe they wrote secure code”; those who trusted it less and reworked their prompts “provided code with fewer security vulnerabilities” (read September 21, 2026) — arxiv.org/abs/2211.03622
- NVD record for CVE-2025-48757 — published May 30, 2025, CVSS 3.1 base score 9.3 critical: an insufficient row-level security policy “allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites,” with the supplier’s dispute attached verbatim (read September 21, 2026) — nvd.nist.gov/vuln/detail/CVE-2025-48757
- This site — the AI-era pillar: the scan behind that record, the perception-gap finding, and the sorting questions for whether to build this way at all — maamoonmara.com/blog/can-ai-build-my-business-app
- This site — the vetting sheet: eight questions to put to any developer, including the one about who reads the code — maamoonmara.com/blog/eight-questions-i-wish-clients-asked
— maamoon mara.