Building Production Software

From Vibe-Coded Prototype to Production: How to Make an AI-Built App Safe for Real Users

AI app builders get you to a working demo in days. Real users need more: data that only the right people can read, keys that stay secret, payments that cannot be faked, and a way back when something breaks. Here is what is missing, why, and how to fix it.

By Rahul D SarkerPublished November 26, 2026Updated November 26, 202642 min read

Part of our Building Production Software series. Start with Production-Grade Software: Engineering Practices That Prevent Technical Debt.

This guide explains common risks and fixes for people who build or buy software. It is not legal advice or a security assessment of your app. Builders change their features often: check their documentation before you act.

Read the transcript

Five thousand six hundred apps. A security company scanned that many public apps, all built with AI app builders. It confirmed more than 2,000 vulnerabilities. Over 400 exposed secrets. And 175 cases of exposed personal data. Most of those apps worked. The screens loaded. People could sign up. But working for you, on a good day, isn’t the same as working for strangers. Some of whom are trying to misuse it. So what’s missing? And how do you fix it?

Part one. What vibe coding is good for. Andrej Karpathy named it in February 2025. You describe what you want, accept what the model writes, and forget the code exists. By November, Collins had made it word of the year. And for a lot of work, it’s the right tool. A prototype to test an idea with real people. An internal tool for a few colleagues. A demo that never holds real data. Even a specification you can click. Some of the clearest briefs we see are working prototypes. The risk changes when strangers can sign up. When it stores personal data. When it takes money. And when other businesses depend on it.

Part two. Demo versus product. Think of a working product as twelve layers. Builders are very good at the ones you can see. The screens, the flows, the sign-in. Some, they cover partly. Access rules, secrets, payments, releases. And some are usually missing. Backups. Monitoring. Tests. Data protection. Here’s the line to remember. Signing in proves who someone is. Access rules decide what they can touch. Most of the public failures happened in that second step.

Part three. What the research says. Veracode tested more than a hundred AI models on the same coding tasks. In 45% of cases, the model chose the unsafe way to do it. In Java, 72%. And newer, bigger models weren’t meaningfully safer. The people who use these tools every day are cautious too. 46% of developers say they distrust the output. And in one trial, experienced developers expected AI to make them 24% faster. They were 19% slower. Afterwards, they still felt faster. Then there’s the habit everyone has. Paste the error in, and ask it to fix it. One study ran code through round after round of AI fixes. After five rounds, critical vulnerabilities were up 37.6%. Each fix is local. Nobody checks the whole change.

Part four. Five public incidents. In spring 2025, Lovable apps were found with database tables anyone could read. In July, Wiz found a way into private Base44 apps. It was fixed within a day. That same month, an agent on Replit deleted a live database during a code freeze. Tea, a dating safety app, left 72,000 images in an open bucket. Not vibe-coded. Same mistake. And in October came the scan of five thousand six hundred apps. The Replit one teaches the simplest lesson. The agent had been told to freeze. It deleted the data anyway. An instruction in a chat isn’t a permission. If a tool can delete live data, one day it will.

Part five. Access rules come first. Many builders let the browser talk straight to the database. To do that, the page carries a public key. Anyone can read it. That’s safe, by design. But only if every table has row level security, and the right policies. So every table is in one of three states. Row level security off. Then the public key reads everything. On, with a policy that says true. That passes a simple check, and still lets everyone in. Or on, with a policy that checks the owner. That’s the one you want. Four rules make policies safer. A separate policy for reading, adding, changing and deleting. A check on writes, so nobody can hand a row to someone else. Never trust a role sent by the browser. And test it as two different people.

Part six. Secrets and keys. Anything in front-end code is public. So which keys can go there? A few are designed for it. The database’s public key. Stripe’s publishable key. A maps key, locked to your domain. Most aren’t. The database admin key. Stripe’s secret key. Your AI provider’s key. Those stay on the server. If a secret key was ever public, deleting it from the code isn’t enough. Copies are already out there. Rotate it first. Move the call to the server. Check the logs. And turn on secret scanning, so the next one is caught before it ships.

Part seven. Payments. A checkout takes an afternoon. What matters is what your app believes about who has paid. Stripe sends your server a message when someone pays. It can send the same one twice, when your server is slow. And anyone can post to that address, pretending to be Stripe. So check every signature, and remember every event you’ve handled. Then test the unhappy paths, in test mode. A failed card. A renewal that fails. A cancellation. A refund. A dispute. And work out prices on the server. Never trust a total sent by the browser.

Part eight. Backups and environments. Two questions decide your worst day. How much could you lose? And how long to get it back? On a free database plan, there may be no automatic backups at all. Daily backups risk up to a day of changes. Point-in-time recovery narrows that to about two minutes. And a backup you’ve never restored is a hope, not a plan. Restore one to a test project before you launch. Time it. That’s your recovery time. Then separate development from live. You, the builder, and any agent work on a copy, with fake data. Changes reach live customers on purpose, after they’ve been tried.

Part nine. UK law. Data protection law doesn’t care which tool wrote the code. You must keep personal data secure, in proportion to the risk. Report a serious breach to the ICO within 72 hours. And most small organisations pay the ICO a fee. £52 or £78 a year. A breach is broader than a hack. A table anyone could have read is a breach to assess, even if you can’t prove anyone did. Write a one-page plan now. Seventy-two hours is short when you start from nothing.

Part ten. Harden, export, or rebuild. So, three routes. Harden in place, if the code is readable and the data is simple. Export and harden, once money or many users are involved. Rebuild the core only when the code is tangled and the data is sensitive. Keep the design. Keep what you learned. For a typical small app, it’s about two weeks of work, in this order. Freeze and copy. Lock the data. Remove the secrets. Separate the databases. Make money safe. See problems. Protect change. Meet the law. And then, ask someone outside the project to try to break it.

The builder got you to a demo. The invisible layers get you to customers. The full guide, with twelve working tools, is free at loomstrat.com.

In this guide26 sections
  1. 01The short answer
  2. 02What vibe coding is good for
  3. 03Demo versus product
  4. 04What the research says
  5. 05Five public incidents
  6. 06Access rules come first
  7. 07Secrets and keys
  8. 08Sign-in and admin pages
  9. 09Payments and webhooks
  10. 10Backups and environments
  11. 11Packages and dependencies
  12. 12Errors and monitoring
  13. 13Tests, reviews and releases
  14. 14Rate limits and AI bills
  15. 15UK law and your app
  16. 16Owning the code
  17. 17What the builders now do
  18. 18Score your app
  19. 19Harden, export or rebuild
  20. 20A 14-day hardening plan
  21. 21What it costs
  22. 22Ten mistakes to avoid
  23. 23Launch checklist
  24. 24Glossary
  25. 25Questions and answers
  26. 26Sources and method

The short answer

How do you take a vibe-coded app to production?

Freeze new features, copy the code into a repository you own, and fix the layers AI app builders usually leave thin: access rules on every table, secrets kept off the browser, signed and de-duplicated payment events, separate development and live databases, tested backups, error monitoring, automated tests for the money and data flows, and the basics of UK data protection. Then ask someone outside the project to try to break it.

If you built an app with Lovable, Bolt, Replit, Base44, v0 or a coding agent in your editor, you have done something that took a funded team six months not long ago. The screens work. People can sign up. Someone has probably asked when they can pay for it.

This guide is about the distance between that moment and a product you can safely put in front of customers. It is not a case against vibe coding. The tools are good at what they are good at, and the fastest route to a real product often starts with them. But the parts that make software safe are mostly invisible, and invisible parts are exactly what a prompt does not ask for.

Everything below is sourced. Where we give our own judgement, from audit and rescue work on apps like yours, we say so. There are twelve working tools along the way: a simulator for the most common data leak, a quiz on which keys may be public, a secret checker that runs only in your browser, a backup calculator, a webhook simulator, a twenty-point readiness score, a route chooser and an effort estimator.

Key facts

Checked 26 November 2026

The term
Coined by Andrej Karpathy in February 2025. Collins named it word of the year for 2025. Euronews
Insecure code
In tests of more than 100 models, 45% of generated code samples had a vulnerability from the OWASP Top 10. Veracode
Public apps
A scan of about 5,600 public vibe-coded apps confirmed over 2,000 vulnerabilities, 400+ exposed secrets and 175 cases of exposed personal data. Escape
Most common flaw
Broken access control is still number one in the OWASP Top 10, 2025 edition. OWASP
Developer trust
46% of developers distrust the accuracy of AI tool output; 33% trust it. Stack Overflow
Fix loops
Critical vulnerabilities rose 37.6% after five rounds of AI “improvements” in one study. arXiv preprint
Invented packages
19.7% of packages recommended by code models did not exist. USENIX Security
UK breaches
43% of UK businesses identified a cyber breach or attack in the last 12 months. GOV.UK
Your duty
UK GDPR requires security appropriate to the risk, whoever wrote the code. legislation.gov.uk

What vibe coding is, and what it is good for

Andrej Karpathy, a founding member of OpenAI and former head of AI at Tesla, described vibe coding in February 2025 as a way of building where you “fully give in to the vibes” and forget that the code exists. You describe what you want, accept what the model writes, paste errors back in, and keep going. By November, Collins Dictionary had made it word of the year, defining it as using AI prompted by natural language to help write computer code.

In practice the word now covers two different things. One is the original sense: a person who does not read the code, working in a hosted builder such as Lovable, Bolt, Replit or Base44, where the tool writes, runs and hosts the app. The other is an experienced developer using an agent in their editor, who reads and reviews most of what it writes. This guide is mainly for the first group, and for the people who inherit their apps. The second group will recognise most of the risks anyway.

Where it is the right tool

Vibe coding is a good choice, often the best one, when the cost of being wrong is low and the value of learning fast is high. That covers:

  • Clickable prototypes to test an idea with real people before anyone writes a specification. We cover this in MVP vs prototype vs proof of concept.
  • Internal tools used by a handful of colleagues, with no customer data, behind your company sign-in.
  • Sales demos and pitch material that never hold real data.
  • Throwaway experiments: a landing page variant, a calculator, a one-off data clean-up.
  • A specification you can click. Some of the clearest briefs we receive are working prototypes. They save weeks of discovery.

Where it needs a second pair of hands

The risk changes when any of these become true:

  • Strangers can sign up, so you no longer know who is using it.
  • The app stores personal data, and especially health, financial, children’s or identity data.
  • It takes payments, issues refunds or gives access in return for money.
  • Other businesses depend on it, so downtime or lost data costs them money too.
  • It connects to other systems with keys that can read or change data there.

None of these mean you must stop using the builder. They mean the invisible layers now matter more than the visible ones, and somebody has to own them. Our comparison of MVP development companies and AI app builders covers the build-versus-buy side of that choice. This guide covers what to do once you have already built.

The gap between a demo and a product

A demo needs to work once, for one person, on a good day. A product has to work every day, for people you have never met, some of whom are trying to misuse it. The difference is not more features. It is a set of layers that a person using the app never sees, until one of them fails.

AI app builders are very good at the layers you can see, because those are what you describe in a prompt. They have become better at some invisible ones, and the major builders now run security scans before you publish. But a scan can only check what it knows to look for, and several layers, such as tested backups, monitoring and data protection paperwork, are not things a code generator can do for you at all.

Interactive diagram

What a builder gives you, and what production needs

Twelve layers of a working product. The shading is our assessment of what AI app builders usually set up for you by default. Choose a layer to see what production needs from it.

Partly covered

Access rules

Production needs

Every table and file checked on the server: who may read, who may write, which rows.

Why it matters

Signing in proves who someone is. Access rules decide what they can touch. Most of the public incidents in this guide were here.

2

usually covered

6

partly covered

4

usually missing

Our assessment, from rescue and audit work and from the builders’ own documentation in November 2026. Your project may differ: some builders now add scans and separate databases, covered later in this guide.

Two points from that diagram are worth holding on to. First, sign-in is usually fine. Builders connect a hosted sign-in service and it works. The trouble is almost always one step later: what a signed-in person is allowed to read and change. Second, the “usually missing” layers are not code problems. Backups, monitoring and a breach plan are decisions and habits. A person has to own them.

“Signing in proves who someone is. Access rules decide what they can touch. Most of the public failures of vibe-coded apps happened in the second step.”

- Loomstrat, from audit work in 2025 and 2026

What the research says

There is now enough research on AI-written code to say something useful, as long as you read each number for what it measures. Some studies test isolated code samples. Some scan live apps. Some survey developers. They point the same way, but they are not the same measurement.

45%of AI-generated code samples contained an OWASP Top 10 vulnerability, across more than 100 modelsVeracode, 2025
2,000+confirmed vulnerabilities in about 5,600 public apps built with AI app buildersEscape, 2025
46%of developers distrust the accuracy of AI tools, up from 31% a year earlierStack Overflow, 2025
19%slower: experienced developers on their own projects with AI tools, while believing they were fasterMETR, 2025

Code samples: Veracode

Veracode gave more than 100 language models 80 coding tasks in Java, Python, C# and JavaScript, each with a known way to do it safely or unsafely. In 45% of cases the model chose the unsafe way, introducing a weakness from the OWASP Top 10. Java was worst, at 72%. Models failed to defend against cross-site scripting in 86% of relevant samples. The most striking finding was that newer and larger models were not meaningfully safer than older ones. They wrote more correct code, but not more secure code.

Live apps: Escape

In October 2025, the security company Escape scanned about 5,600 public web apps built with Lovable, Base44, Create.xyz, Vibe Studio and Bolt.new. It confirmed more than 2,000 vulnerabilities, over 400 exposed secrets and 175 cases of exposed personal data, including medical records, bank account numbers, phone numbers and emails. Escape notes two limits: the sample was mostly Lovable apps, because those were easiest to find, and it kept only findings it could confirm with high confidence. The real numbers are likely higher, not lower.

The pattern Escape describes is the one this guide spends most time on. Lovable front ends talk to a Supabase database using a public key that ships in the JavaScript bundle. That is by design, and safe, if every table has correct row level security. Where it does not, anyone with the key can read the table. Escape’s advice is that Lovable can help generate these rules, but a person must review them.

Developers: Stack Overflow and METR

The 2025 Stack Overflow developer survey found trust in AI output at its lowest yet: 46% of developers distrust its accuracy and only 33% trust it. Most respondents said vibe coding is not part of their professional work. These are people who use AI tools every day and have learned where they fail.

METR ran a randomised trial in early 2025 with 16 experienced open-source developers working on 246 tasks in their own large codebases. With AI tools allowed, they took 19% longer. Before starting, they had expected to be 24% faster, and afterwards they still believed they had been 20% faster. METR is careful to say this is one setting with early-2025 tools, not proof that AI slows everyone down. The useful lesson for this guide is narrower: how fast it feels is not a reliable measure of how much is done.

Fix loops

One of the most common habits in vibe coding is pasting an error back in and asking the model to fix it. A 2025 study tested what that does to security over many rounds. Across 400 code samples and 40 rounds of “improvements”, critical vulnerabilities rose by 37.6% after only five rounds. The paper is a preprint and the numbers will move as models improve. The mechanism will not: each fix is local, but the model may change several files to make it, and nobody checks the whole change.

Animated diagram

Why “just ask it to fix it” can make security worse

A 2025 study ran 400 code samples through rounds of AI “improvements” and counted critical vulnerabilities after each round. Step through the loop.

Round

0

Prompt for a fixAI edits several filesSomething else changesPrompt again

Start

Keep going to round five

Each fix is local, but a builder may edit several files to make it. Without a person checking the whole change, a fix for one bug can quietly open another.

From Shukla and Joshi, “Security Degradation in Iterative AI Code Generation”, 2025, a preprint. The authors recommend human review between iterations.

Five public incidents, and what each one teaches

Statistics are easy to wave away. Incidents are harder. The five below are documented by the researcher, the vendor or a named publication. One of them, Tea, is not a vibe-coded app at all. We include it because it is the same mistake, made by a funded company, and its scale shows what an open storage bucket can do.

Timeline

Five public incidents, and the control that would have stopped each

Choose an incident. Every one is documented by the researcher, the vendor or a named publication.

Mar–May 2025

Lovable projects with open tables

A researcher found Lovable-built apps whose Supabase tables could be read, and in some cases written, by anyone with the public key. It was published as CVE-2025-48757 after the disclosure window passed. The record is marked disputed.

Source: NVD

The control

Correct row level security on every table, tested as a stranger.

Each summary is shortened from the linked source. Where reports disagree on numbers, we use the vendor’s or researcher’s own figure.

Lovable and open tables

In March 2025, Matt Palmer, an engineer at Replit, found that a site built with Lovable allowed anyone to read data from its database. Further checks found the same problem across many Lovable projects. He reported it to Lovable on 21 March and, after the disclosure window passed, published a statement and a CVE in late May. The NVD record describes insufficient row level security policies that let unauthenticated attackers read or write arbitrary tables in generated sites, for projects before 15 April 2025. The record is marked as disputed, and Lovable has since added a security scanner that runs before publishing.

The lesson is not about Lovable specifically. Any app whose browser talks straight to a database relies entirely on the database’s rules. If the rules are missing or too generous, there is no other layer to stop a request.

Base44 and the unlinked endpoint

In July 2025, Wiz researchers found two endpoints in Base44, the builder owned by Wix, that let anyone register for a private app using only its app ID, which was visible in the app’s URL. That bypassed the app’s single sign-on. Wix fixed it within 24 hours and Wiz found no sign of misuse. This was a platform bug, not a user’s mistake, which is the point: when you build on a platform, its weaknesses are yours too. Keep your own checks on the server, even where the platform says it handles them.

Replit and the live database

Also in July 2025, the founder of SaaStr ran a public experiment building an app with Replit’s agent. On the ninth day, during what he had declared a code freeze, the agent ran destructive commands against the live database and deleted records for more than a thousand executives and companies, according to The Register. The agent first said the data could not be restored; a rollback later worked. Replit’s chief executive apologised and the company began separating development and production databases automatically.

The lesson: an instruction in a chat is not a permission. If a tool can delete live data, eventually it will. Agents should work on a copy.

Tea and the forgotten bucket

Tea, a dating safety app, confirmed in July 2025 that a legacy storage system had been accessed, exposing about 72,000 images, including 13,000 selfies and photo IDs from users who joined before February 2024. Later reporting found private messages exposed too. Tea was not vibe-coded. It is here because the failure, a storage bucket readable by anyone with its address, is the same one scanners find in AI-built apps, and because it shows that old data in an old system is still your data.

Escape and the long tail

The Escape scan above is the fifth entry because it shows that the first four are not unusual. They are the visible part of a large number of small, quiet exposures in apps whose owners do not know they are exposed. Most will never be in the news. Some will be found by people who do not report them.

Access rules come first

If you fix one thing this week, fix this. Broken access control is number one in the OWASP Top 10, the industry’s list of the most serious web application risks, for the second edition running. In vibe-coded apps it usually takes one specific form.

Why the browser can talk to your database

Many builders use Supabase or Firebase as the back end. These services let the front end query the database directly, which is what makes them fast to build with. To do that, the front end carries a key. For Supabase it is called the anon key or, in newer projects, the publishable key. Supabase is clear that this key is safe to expose, but only when row level security is turned on, because every request is then checked against your policies and the user’s sign-in token.

Row level security, or RLS, is a feature of PostgreSQL, the database Supabase runs. When it is on for a table, every query is filtered by rules called policies. With RLS on and no policies, the public key sees nothing. With RLS off, the public key sees everything.

Interactive simulator

What the public key can read

An invoices table holds rows for three customers. The app’s public key ships in every browser, so anyone can send a query with it. Change the rule and the person asking, then run the query.

The rule on the table

Who sends the query

-- Row level security is off.
-- The public key in the browser can read every row.
5 of 5 rows returned to a stranger
  • INV-1041Hart & Sons · alice£4,200
  • INV-1042Penrose Dental · alice£1,150
  • INV-1043Kestrel Logistics · bob£9,800
  • INV-1044Mill Lane Bakery · bob£640
  • INV-1045Arden Physio · carol£2,300
Simplified from Supabase’s documentation on row level security and securing your data. The middle option is the mistake scanners report most: a policy exists, so a checker that only asks “is RLS on?” passes it.

The three states, in plain terms

What the public key can do, by table state
Table stateA stranger with the public keyA signed-in userWhat to do
RLS offReads, and often writes, every rowReads every row, including other users’Turn RLS on today
RLS on, policy using (true)Reads every row the policy allows, which is all of themSameRewrite the policy to check ownership
RLS on, no policiesNothingNothingAdd the policies the app needs
RLS on, owner checksNothingOnly their own rowsTest it, then keep it this way

The second row is the dangerous one, because it passes a simple check. A scanner that asks “is RLS on?” says yes. The policy then lets everyone through. In our audits, automated checks are much better at spotting a missing policy than a wrong one.

How to check and fix it

The SQL below lists the tables without RLS, turns it on, and adds two typical policies. Run it in a development copy first, never against live data you have not backed up.

-- 1. Find every table in the exposed schema without row level security.
select relname as table_without_rls
from pg_class c join pg_namespace n on n.oid = c.relnamespace
where n.nspname = 'public' and c.relkind = 'r' and not c.relrowsecurity;

-- 2. Turn it on. With no policy, the public key now sees nothing.
alter table public.projects enable row level security;

-- 3. Give back only what each person needs.
create policy "members read their projects"
  on public.projects for select to authenticated
  using ((select auth.uid()) in (
    select user_id from public.project_members where project_id = projects.id
  ));

create policy "owners change their projects"
  on public.projects for update to authenticated
  using ((select auth.uid()) = owner_id)
  with check ((select auth.uid()) = owner_id);  -- stops a user handing a row to someone else

Four rules make policies safer:

  • Write a separate policy for each action. Reading, inserting, updating and deleting are different risks. A user who may read a row may not be allowed to delete it.
  • Use with check on inserts and updates. Without it, a user can change the owner column and hand a row to someone else, or create rows that claim to belong to another user.
  • Never trust a value sent from the browser to decide access. A hidden form field that says role: admin is a suggestion, not a fact. Check roles against a table only the server can change.
  • Test as two people. Make two test accounts. Sign in as one and try to read, change and delete the other’s records, through the app and directly through the API. If you cannot break it, try harder, or ask someone else.

Files and storage

Storage buckets have their own rules, separate from tables. Uploaded invoices, ID photos, contracts and profile pictures often sit in a bucket that was made public so images would load in the demo. Make buckets private unless the files are meant for anyone, and serve private files through signed links that expire. The Tea incident above was a bucket, not a table.

When not to let the browser talk to the database

Direct database access from the browser is fine for simple ownership rules. It gets hard when the rules depend on several tables, money, or workflow states: “a manager can approve an expense under £500 for their own team, but not their own expense”. Rules like that are clearer and easier to test on a server, in an API route or a database function, with the browser asking the server rather than the database. Moving the hard rules to the server is often the single most useful change in a hardening project. Our guide to multi-tenant SaaS architecture covers the patterns when your customers are companies with teams.

Secrets and keys

A secret is any value that gives power to whoever holds it: a database admin key, a payment secret key, an AI provider key, an email service key. The rule is simple. Anything in front-end code is public. Anyone can open the page source, the network tab or the downloaded JavaScript and read it. Escape found more than 400 exposed secrets in public vibe-coded apps, often in exactly those bundles.

Not every key is a secret. Some are designed to sit in the browser. The quiz below sorts the common ones.

Quiz

Which keys can go in the browser?

Anything in front-end code is public: anyone can open the page source or the network tab. Sort each key, then read why.

  • Supabase publishable (anon) key

  • Supabase service role key

  • Stripe publishable key (pk_…)

  • Stripe secret key (sk_live_…)

  • Stripe webhook signing secret

  • AI model API key

  • Maps key, restricted to your domain

  • Email provider API key

Choose an answer for each key.

Based on Supabase’s and Stripe’s documentation and the OWASP Secrets Management Cheat Sheet. When a server-only key has been in a public bundle even once, rotate it: removing it from the code does not remove it from copies already downloaded.

How secrets end up public

  • Pasted into a prompt. You give the builder your Stripe secret key so it can “set up payments”, and it puts the key where the code runs, which may be the browser.
  • Committed to the repository. A .env file, a config file or a test script is synced to GitHub. If the repository is public, bots find keys within minutes.
  • Prefixed for the browser. Frameworks expose variables with names like NEXT_PUBLIC_ or VITE_ to the front end on purpose. Putting a secret behind that prefix publishes it.
  • The service role key used to “fix” a permission error. When RLS blocks a query, the quickest way to make the error go away is the key that ignores RLS. It works, and it opens the whole database.

Checker

Paste front-end code and look for secrets

Paste a file, a built bundle or a page’s source. The check runs in your browser with regular expressions. Nothing you paste is sent anywhere or stored.

Results appear here as you paste.

A starting check, not a scanner. It knows a few common key formats and will miss others. For a repository, turn on GitHub secret scanning. Do not paste live secrets into tools you do not trust, including chat assistants.

What to do if a secret was exposed

  1. 1

    Rotate it first

    Create a new key in the provider’s dashboard and revoke the old one. Deleting the key from your code does not help: copies of the old bundle exist on every device that loaded it.

  2. 2

    Move the call to the server

    Anything that needs the secret should run in an API route, a server function or a database function. The browser calls your server; your server calls the provider.

  3. 3

    Check the logs

    Look at the provider’s usage and audit logs for the period the key was public. AI provider keys are often spent within hours. Payment keys may show test charges or refunds you did not make.

  4. 4

    Turn on scanning

    Enable secret scanning on the repository so the next leak is caught before it is pushed.

  5. 5

    Decide whether it is a breach

    If the key gave access to personal data and you cannot rule out that it was used, you may have a personal data breach to assess. The law section below covers the 72-hour rule.

The OWASP Secrets Management Cheat Sheet is the standard reference if you want to go further: central storage, short-lived credentials, least privilege and rotation schedules.

Sign-in, sessions and admin pages

Builders usually connect a hosted sign-in service, and the core of it, passwords, reset emails and tokens, is handled by people who do this for a living. That is good. The risks are at the edges.

  • Admin pages protected only in the browser. A common pattern is a page that checks if (user.isAdmin) before showing itself. The page is hidden; the data behind it is not. Every admin action must be checked again on the server.
  • Endpoints nobody links to. The Base44 flaw was in endpoints that were not part of any visible flow. Attackers do not use your navigation. They read your JavaScript and your API documentation and call whatever they find.
  • Email verification switched off to make testing quicker, then never switched back on. Anyone can then sign up as anyone.
  • No limit on attempts. Login, password reset and one-time code forms without rate limits invite guessing.
  • Sessions that never end on shared devices, and no way for a user to sign out everywhere after losing a phone.
  • Invitation links that never expire and can be reused, which matters as soon as you sell to teams.

Offer multi-factor sign-in at least for admin accounts. Your own admin account is the most valuable account in the system, and it is often protected by a password reused from somewhere else.

Payments and webhooks

Builders can produce a working checkout in an afternoon. Checkout is the easy part. The hard part is what your app believes about who has paid, and that usually comes from webhooks: messages the payment provider sends to your server when something happens.

Two facts about webhooks catch people out. Stripe’s documentation is explicit on both. First, anyone can send a request to your webhook address, so you must check the signature on every event to prove it came from Stripe. Second, events can arrive more than once, because Stripe retries when your server is slow or returns an error, so your code must recognise an event it has already handled.

Simulator

Three payment events arrive. What does your app do?

Stripe delivers events at least once and retries when your server is slow, so the same event can arrive twice. Anyone can also post to your webhook address. Turn the two safeguards on and off, then play the events.

  1. evt_1Q…a1from Stripe

    First delivery

  2. evt_1Q…a1from Stripe

    Retry: your server was slow to answer

  3. evt_fakefrom A stranger

    Forged request, no valid signature

Based on Stripe’s webhooks documentation, which says to verify the Stripe-Signature header and to handle duplicate events, and on its idempotent requests guide. Event IDs are shortened.

A webhook handler that does both looks like this. The database call is illustrative; use your own.

// app/api/stripe/webhook/route.ts
import Stripe from 'stripe';

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);

export async function POST(req: Request) {
  const body = await req.text();                    // the raw body, not parsed JSON
  const sig = req.headers.get('stripe-signature')!;

  let event: Stripe.Event;
  try {
    event = stripe.webhooks.constructEvent(body, sig, process.env.STRIPE_WEBHOOK_SECRET!);
  } catch {
    return new Response('Bad signature', { status: 400 });
  }

  // Record the event ID first. A unique index makes the second delivery a no-op.
  const fresh = await db.processedEvents.insertIfAbsent(event.id);
  if (!fresh) return new Response('Already handled', { status: 200 });

  if (event.type === 'checkout.session.completed') {
    await fulfilOrder(event.data.object.id);         // safe to run once, by design
  }
  return new Response('ok', { status: 200 });
}

Then work through the unhappy paths, in the provider’s test mode:

  • A card that fails, and one that needs extra authentication.
  • A subscription that renews, fails to renew, and is cancelled. Does access end when it should?
  • A refund and a dispute. Does the user keep what they no longer paid for?
  • Events arriving out of order: an update before the creation it refers to.
  • Prices and totals calculated on the server, never taken from the browser.

For outgoing calls that create charges, send an idempotency key so a retry after a network error does not charge twice. Our webhooks guide covers retries, ordering and queues in more depth.

Backups, environments and recovery

Two questions decide how bad your worst day will be. How much data could you lose? And how long would it take to get back? Most prototypes cannot answer either.

Backups

On Supabase, Pro, Team and Enterprise projects are backed up daily, with seven, fourteen and up to thirty days kept respectively. Free projects are not backed up automatically; Supabase recommends exporting your data regularly yourself. Point-in-time recovery, a paid add-on, narrows the worst-case loss to about two minutes. Free projects are also paused after a week of low activity, which is fine for a demo and not fine for customers.

Calculator

How much would you lose on your worst day?

Pick a backup set-up and how many records your app writes an hour: orders, bookings, messages, edits. The answer is the worst case if the database is lost just before the next backup.

Up to a day of changes. Pro keeps the last seven daily backups.

960

records lost in the worst case

24 hours

of changes at risk

7 days

how far back you can restore

Backup facts from Supabase’s database backups documentation, November 2026. Other hosts differ. A backup only counts once you have restored it to a test project and checked the data.

A backup is only real once you have restored it. Once, before launch, restore last night’s backup into a fresh test project and check that the data, the files and the sign-ins all work. Write down how long it took. That number is your recovery time, and it is usually longer than people guess.

Separate development from live

The Replit incident is the clearest argument for this. When you, a builder or an agent experiment, it should be on a copy. Create a second project for development, with fake or anonymised data, and point the builder at it. Promote changes to live deliberately. Database changes in particular, called migrations, should be written down as files, tried on the copy and only then run on live. Our guide to zero-downtime database migrations covers how to change a live database safely.

Packages and dependencies

Modern apps are mostly other people’s code: open-source packages pulled in from npm or PyPI. AI tools add packages freely, and sometimes they invent them. Researchers at USENIX Security 2025 checked 2.23 million package recommendations from 16 models and found that 19.7% named packages that did not exist. The repeated names are the problem: if the same fake name keeps coming back, an attacker can register it and wait for someone to install it. This is called slopsquatting.

Interactive chart

One in five suggested packages did not exist

Researchers asked 16 code models for 576,000 code samples and checked every package they recommended against the real registries. Each square is one recommendation in a hundred.

19.7%

of recommended packages did not exist

43%

of invented names came back in all ten repeats of the same prompt

The repetition is what makes it dangerous. If the same fake name comes up again and again, an attacker can publish a package under that name and wait.

From Spracklen and others, “We Have a Package for You!”, USENIX Security 2025. Models were tested in early 2024; newer models may differ. Registering a name that models invent is called slopsquatting.

OWASP has made this a top-three risk: Software Supply Chain Failures is new at number three in the 2025 Top 10. The defences are simple:

  • Before accepting a new package, check that it exists, is widely used, and has been maintained recently.
  • Commit the lockfile so every install gets the same versions.
  • Turn on dependency alerts in your repository host.
  • Remove packages you no longer use. Builders rarely clean up after themselves.

Errors, logs and monitoring

In a prototype, you find bugs because you are the user. In production, other people find them, and most will leave rather than tell you. Monitoring is how you find out first.

  • Error tracking sends every unhandled error in the browser and on the server to one place, with the page, the user and the steps that led to it. Several services have free tiers that cover a small app.
  • Uptime checks load your home page and one key API route every minute and alert you when they fail.
  • Searchable logs let you answer “what happened to this customer’s order at 14:12?” after the fact.
  • An audit log records sensitive actions: sign-ins, role changes, exports and deletions, with who did them and when. It is how you investigate, and it is often the first thing a business customer asks for.
  • Alerts that reach a named person. An alert sent to an inbox nobody reads is a log, not an alert.

Logging and alerting failures are number nine in the OWASP Top 10 for a reason: without them, a breach can run for months. Our incident response guide covers what to do when an alert fires.

Tests, reviews and releases

The biggest structural risk in a vibe-coded app is not any single bug. It is that every new prompt can change code far from the feature you asked about, and you will not notice until a customer does. Three habits fix most of it.

Tests for what matters most

You do not need tests for everything. You need automated tests for the few flows where a silent break costs real money or exposes data: sign-up and sign-in, payment and access after payment, creating and viewing the main record type, and the permission checks between two users. End-to-end tests that click through the real app in a browser are the best fit, because they test the result, not the code, which may be rewritten tomorrow. Our guide to software testing explains the types.

Review before release

Sync the code to a repository and make changes through pull requests, with a preview deployment for each. Even if the reviewer is you, reading the list of changed files before you merge catches surprises: “why did a colour change touch the payments file?” Ask an AI tool to explain a diff if it helps, but have a person decide.

A way back

Every release should be undoable in minutes. Most hosting platforms keep previous deployments and can roll back with one click. Database changes are harder to undo, which is another reason to try them on a copy first. Our CI/CD guide shows a simple pipeline that runs tests on every change and deploys only when they pass.

Rate limits and AI bills

Public apps get used in ways you did not plan. Some of it is automated: bots that create thousands of accounts, try passwords, or call your AI features because you are paying for the model. Without limits, the first sign is often a bill.

  • Rate-limit sign-up, login, password reset and any form that sends email or text messages. Each of these can be abused to spam, guess or run up costs.
  • Put AI features behind sign-in and per-user limits, and set a monthly spending cap with the model provider. Call the model from your server, never with a key in the browser.
  • Cap uploads by size and type, and scan or reject anything you do not expect.
  • Watch usage graphs for the first weeks after launch. A sudden rise is either success or abuse, and you want to know which.

If your app uses a language model to act on user input, read our guide to LLM evaluation. Prompt injection, where user content tells the model to ignore its instructions, is a separate class of risk with its own defences.

UK law and your app

Data protection law does not care which tool wrote the code. If your app processes personal data about people in the UK, UK GDPR and the Data Protection Act 2018 apply to you as the organisation that decides why and how the data is used.

Security is a legal duty

Article 32 of UK GDPR requires “appropriate technical and organisational measures” to secure personal data, taking into account the risk to people. The ICO’s guidance on security is clear that this is judged against what is reasonable for your situation: a small app holding names and emails needs less than one holding health records, but every app needs something. Access rules, secret handling, backups and monitoring are exactly the measures the law has in mind.

The 72-hour rule

If you have a personal data breach that is likely to risk people’s rights and freedoms, you must report it to the ICO within 72 hours of becoming aware of it. If the risk to people is high, you must also tell them. A breach is broader than a hack: an open table that someone could have read is a breach to assess, even if you cannot prove anyone did. Writing a one-page plan now, covering who decides, who reports and who tells users, makes those 72 hours much less frightening.

The data protection fee

Most organisations that process personal data must pay the ICO a data protection fee unless they are exempt. Since February 2025 it is £52 a year for micro organisations, £78 for small and medium ones and £3,763 for large ones. The ICO has a short self-assessment that tells you whether you need to pay.

The paperwork that matters

  • A privacy notice that matches what the app really collects, including analytics and any AI provider you send data to.
  • A short record of what you hold, why, where it is stored and how long you keep it.
  • Data processing terms with your builder, database host, email service and AI provider. Most publish standard terms you accept in the dashboard.
  • A way for people to access, correct and delete their data, which you will be asked for sooner than you think.

If you sell to other businesses, many will ask for Cyber Essentials, the government-backed scheme for basic security controls. Our guides to security and compliance basics, AI and UK GDPR and penetration testing for UK startups go further.

Owning the code

Ownership has two parts: having the code, and being able to run and change it without the tool that made it. Most builders handle the first well. Lovable, for example, lists Git sync with GitHub, GitLab and Bitbucket on every plan. The second part is on you.

  • Accounts in your name. The repository, the database, the hosting, the domain and the payment account should be owned by your company, with at least two people able to sign in.
  • Prove you can deploy without the builder. Once, deploy the exported code to your own hosting account. If it does not build, you have found a dependency on the platform you did not know about.
  • A short map of the system. One page listing the services, what each holds, and which keys connect them. Whoever inherits the app will need it.
  • Someone who can read it. Code nobody understands is a liability even when it works, because nobody can say what it does with the data. If that is your situation, our technical debt guide explains how to measure it.

Who owns AI-written code in law is a separate and still-developing question in the UK. For the practical purpose of running a business, what matters is that the code is in your accounts, under your control, with terms from the builder that let you use it.

What the builders now do for you

It would be unfair to describe the incidents of 2025 without saying what changed. The major builders have added real safeguards, and you should use every one of them.

Safeguards added by builders since 2025, as documented by each vendor
SafeguardWhat it doesIts limit
Pre-publish security scans (Lovable)Checks configuration, database schema and RLS, and looks for exposed sensitive data each time you publish; a deeper AI review is available on requestChecks that rules exist more reliably than that they are correct
Supabase Security Advisor in the builderFlags tables without RLS and other database warnings before you publishOnly covers the database, not your server code or payments
Automatic key protectionMoves recognised API keys out of front-end code into server-side settingsOnly recognises keys it knows; secrets pasted in other ways can slip through
Separate development and live databases (Replit)Lets the agent work on a development database while customers use productionOnly helps if you use it, and if migrations are reviewed before they reach live
One-click restore of project stateRolls the project back after an agent mistakeNot a substitute for database backups you have tested

Lovable’s own security documentation and its announcement describe these features in detail. Replit’s changes are described in its response to the incident above. Treat them as a floor, not a ceiling: they catch the common mistakes, and leave the ones specific to your app for you.

Score your app

The twenty checks below cover every section of this guide. Tick what is true today, honestly. The score is weighted toward the gaps that have caused public data exposures, and the three most important gaps are listed next to it.

Self-assessment

Is your app ready for real users?

Twenty checks, weighted by how much damage the gap can do. Tick the ones that are true today. Your answers stay in this page.

Data access

Secrets

Money

Recovery

Visibility

Change

Law

Abuse

0%

A prototype. Keep it away from real personal data for now.

Fix these first

  1. 1Turn on row level security everywhere and write owner checks. Test as a stranger and as a second user.
  2. 2Make two test accounts and try to read, edit and delete each other’s records through the API.
  3. 3Search the bundle for key patterns, move calls to the server, and rotate anything that was public.
Weights are our judgement: three for gaps that have caused public data exposures, two for gaps that lose money or data, one for gaps that slow you down. It is a starting point, not a security assessment.

Harden in place, export and harden, or rebuild

Once you know where the gaps are, there are three ways forward. Most apps we see should be hardened, not rebuilt. Rebuilding is expensive and throws away tested behaviour along with the problems. But some codebases cannot be made safe at a sensible cost.

Decision tool

Harden in place, export and harden, or rebuild?

Five questions about your app today. The answer is a starting point for a conversation, not a verdict.

Real users today

Takes payments

Kind of personal data

State of the code

Who will maintain it

Suggested route

Harden in place

Stay on the builder. Fix access rules, secrets, backups and monitoring with the checklist in this guide, and get one outside review before you launch.

Our rules of thumb from rescue work. “Tangled” means the same logic is copied in many places, files run to thousands of lines, or nobody can say where a rule is enforced.

Signs that point to a rebuild: the same rule is written in many places and they disagree; files run to thousands of lines; every fix breaks something unrelated; nobody can say where a permission is enforced; or the data model cannot represent something the business needs, such as teams or several prices. Our project rescue guide covers the assessment in detail, and our modernisation guide covers moving users from an old system to a new one without a big-bang switch.

A 14-day hardening plan

For a typical small app, this is the order we work in. Each step makes the next one safer. If you only have time for the first week, the first week removes most of the risk.

  1. 1

    Day 1: freeze and copy

    Stop adding features. Sync the code to a repository you own, take a database backup and download it, and list every service and key the app uses.

  2. 2

    Days 2 to 4: lock the data

    Turn on row level security for every table, rewrite policies to check ownership, make storage private, and test as a stranger and as a second user. Move complex rules to the server.

  3. 3

    Day 5: remove secrets

    Search the built front end for keys. Move every server-only call to the server. Rotate anything that was ever public. Turn on secret scanning.

  4. 4

    Day 6: separate environments

    Create a development project with fake data. Point the builder and any agents at it. Write database changes as migration files.

  5. 5

    Days 7 and 8: make money safe

    Verify webhook signatures, store processed event IDs, and test failures, renewals, cancellations, refunds and disputes in test mode.

  6. 6

    Day 9: see problems

    Add error tracking, uptime checks and an audit log for sensitive actions. Send alerts to a named person. Add rate limits and spending caps.

  7. 7

    Days 10 to 12: protect change

    Write end-to-end tests for sign-up, payment and the main record type, including the two-user permission test. Run them on every change.

  8. 8

    Day 13: meet the law

    Publish an accurate privacy notice, check whether you owe the ICO fee, and write a one-page breach plan.

  9. 9

    Day 14: second opinion and launch

    Have someone outside the project try to break it. Fix what they find. Do a practice restore. Then launch, and watch the dashboards closely for two weeks.

What it costs

The running costs of a hardened small app are modest. Supabase’s Pro plan, which adds daily backups and stops projects pausing, starts at $25 a month. Builder plans start at a similar level. Error tracking and uptime checks have free tiers that cover a small app. The ICO fee is £52 or £78 a year for most small organisations.

The real cost is people’s time. Use the estimator below for a rough figure, with your own day rate. The ranges are ours, from audit and rescue work, for a small app with a few user types and one payment flow.

Estimator

How long hardening takes, item by item

Choose the work your app needs and a day rate. Ranges are developer days for a typical small app: a few user types, under 30 tables, one payment flow.

8–20.5 days

of developer time

£4,800–£12,300

at that day rate, before VAT

Our estimates from audit and rescue work, not quotes. A tangled codebase can double the top of each range. The outside review is usually bought in and priced separately.

For comparison, Loomstrat Studio’s Rapid MVP, a fixed-price production build, is £12,000 to £24,000 and ships in three to six weeks, with the repository and IP handed over and every build audited before handover. That is the right comparison when the estimator’s answer is “rebuild the core”. When it is “harden in place”, a few days of focused work is usually enough, and spending more would be waste. Our guides to fixed-price MVP development and software maintenance costs cover what to budget either way.

Ten mistakes to avoid

  1. Asking the builder to “make it secure”. It will make changes and say it has. Ask specific questions instead: which tables have RLS, which policies allow anonymous reads, which keys are in the bundle.
  2. Using the service role key to fix a permission error. The error was the security working.
  3. Testing only as yourself. You are the owner of everything. Test as a stranger and as a second user.
  4. Hiding admin pages instead of protecting them. Check every privileged action on the server.
  5. Trusting prices, roles or IDs from the browser. Anything the browser sends can be changed.
  6. Letting an agent touch live data. Development copy only.
  7. Having backups you have never restored. Restore once before launch.
  8. Pasting errors in a loop. After two or three rounds, stop and read the change, or ask someone who can.
  9. Keeping data you do not need. Every field you do not store is one you cannot leak. Delete old test data and legacy uploads.
  10. Launching without a plan for a breach. Seventy-two hours is short when you are working it out from scratch.

Launch checklist

Checklist

Before real users, before money, before growth

Tick each item as you finish it. The list stays in this page only.

0 of 19 done. Current stage: Before real users.

Stage 1 · Before real users

Stage 2 · Before taking money

Stage 3 · Before growth

Glossary

Vibe coding
Building software by describing what you want to an AI model and accepting what it writes, often without reading the code. Coined by Andrej Karpathy in 2025.
AI app builder
A hosted tool, such as Lovable, Bolt, Replit or Base44, that writes, runs and hosts an app from natural-language prompts.
Row level security (RLS)
A PostgreSQL feature that filters every query on a table through rules called policies, so each user sees only the rows they are allowed to.
Policy
A rule attached to a table under row level security that says which rows a role may read, insert, update or delete.
Publishable or anon key
A Supabase key designed to be public in the browser. Safe only when every exposed table has correct row level security.
Service role key
A Supabase key that bypasses row level security entirely. Server only.
Secret
Any value that gives power to whoever holds it, such as an admin key, a payment secret key or an AI provider key.
Webhook
A message a service sends to your server when something happens, such as a payment succeeding.
Idempotency
The property that doing something twice has the same effect as doing it once. It makes retries safe.
Point-in-time recovery
A backup method that can restore a database to any moment, not just the last daily backup.
Migration
A written, repeatable change to a database’s structure, tried on a copy before it runs on live data.
Slopsquatting
Registering a package name that AI models tend to invent, so that people who install the invented package get the attacker’s code.
OWASP Top 10
A widely used list of the most serious web application security risks, published by the Open Worldwide Application Security Project.
Personal data breach
A security incident that leads to personal data being lost, destroyed, changed, disclosed or accessed without permission.

Questions and answers

Is it safe to launch an app built with Lovable, Bolt or Replit?

It can be. The builders are not unsafe in themselves, and they now run security scans before publishing. What makes an app safe is correct access rules, secrets kept on the server, safe payment handling, tested backups and monitoring. Check each of those, using the readiness score in this guide, before real users or real data arrive.

What is the most common security problem in vibe-coded apps?

Missing or over-generous access rules on the database. Many builders let the browser query the database directly with a public key. That is safe only when every table has row level security with policies that check ownership. Where it does not, anyone with the key can read the table.

Is the Supabase anon key a secret?

No. It is designed to be public and ships in your front-end code. It is safe only when row level security is on for every exposed table and the policies are correct. The service role key is different: it bypasses row level security and must never be in the browser.

Can I ask the AI to make my app secure?

You can ask it to help, and it will find some problems. But it will also say it has fixed things it has not, and repeated fix loops can introduce new vulnerabilities. Ask specific questions, read the changes, and test as a stranger and as a second user. Have a person outside the project review it before launch.

Do I need to rebuild my vibe-coded app?

Usually not. Most apps can be hardened in place or exported and hardened in days or a few weeks. A rebuild of the core makes sense when the code is tangled, the same rules are duplicated and disagree, and the app holds sensitive data. Use the route chooser in this guide as a starting point.

How long does it take to make a vibe-coded app production-ready?

For a typical small app, our estimate is roughly 8 to 20 developer days for the essentials, and more with an audit log, an outside review and other extras. It depends on what is already in place and how readable the code is. The 14-day plan in this guide covers the essentials in order of risk.

Does UK GDPR apply to an app I built with AI?

Yes. Data protection law applies to the organisation that decides why and how personal data is used, not to the tool that wrote the code. You must secure the data appropriately, report qualifying breaches to the ICO within 72 hours, publish an accurate privacy notice and pay the ICO data protection fee unless you are exempt.

Who owns the code an AI app builder writes?

In practice, check the builder’s terms, keep the code synced to a repository in your company’s account, and prove you can deploy it without the builder. The legal question of who owns AI-generated code is still developing in the UK, so take advice if ownership is critical to a deal or investment.

Should I keep using the builder after launch?

You can. Many teams keep using a builder for screens and copy while a developer owns the data model, access rules, payments and releases. What matters is that changes go through review and tests before they reach live users.

What should I do first if I think my app is exposing data?

Turn on row level security for the affected tables or make the bucket private, rotate any exposed keys, and check the logs for access during the exposure. Then assess whether it is a personal data breach you must report to the ICO within 72 hours. Take advice if you are unsure.

Sources and method

We checked every source below on 26 November 2026. Figures are quoted from the original publisher where we could reach it; where a number appears only in secondary reporting, we say so in the text or leave it out. Judgements labelled as ours come from Loomstrat’s audit and rescue work and are not drawn from these sources. Builder features change often: check each vendor’s documentation before relying on a feature.

Research

  1. 01
    2025 GenAI Code Security Report

    Veracode, 2025. 45% of samples with OWASP Top 10 flaws, Java 72%, cross-site scripting 86%.

  2. 02
    How we discovered over 2k high-impact vulnerabilities in apps built with vibe coding platforms

    Escape, October 2025. 5,600 apps, 2,000+ vulnerabilities, 400+ secrets, 175 PII cases, method and limits.

  3. 03
    Measuring the impact of early-2025 AI on experienced open-source developer productivity

    METR, July 2025. 19% slower, 24% expected speed-up, caveats.

  4. 04
    Security Degradation in Iterative AI Code Generation

    Shukla and Joshi, arXiv, 2025. 37.6% rise in critical vulnerabilities after five rounds.

  5. 05
    We Have a Package for You! Package hallucinations by code-generating LLMs

    Spracklen and others, USENIX Security, 2025. 19.7% invented packages, 43% repeated, model differences.

  6. 06
    2025 Developer Survey press release

    Stack Overflow, 2025. Trust and distrust in AI output.

  7. 07
    Cyber security breaches survey 2025/2026

    DSIT, GOV.UK, April 2026. Share of UK businesses identifying a breach or attack.

  8. 08
    OWASP Top 10: 2025

    OWASP, 2025. Broken access control first; supply chain failures third; logging ninth.

Incidents

  1. 09
    CVE-2025-48757

    NIST National Vulnerability Database. Description, affected period, disputed status.

  2. 10
    Statement on CVE-2025-48757

    Matt Palmer, May 2025. Discovery and disclosure timeline.

  3. 11
    Critical vulnerability in Base44

    Wiz Research, July 2025. Unauthenticated registration endpoints, fix within 24 hours.

  4. 12
    Vibe coding service Replit deleted user’s production database

    The Register, 21 July 2025. Code freeze, deleted records, recovery.

  5. 13
    Replit makes promise to stop its AI agents making vibe coding disasters

    The Register, 22 July 2025. Development and production database separation.

  6. 14
    Official statement from Tea

    Simon Willison’s weblog, 26 July 2025. 72,000 images, legacy storage, affected users.

Platform documentation

  1. 15
    Row level security

    Supabase. How RLS and policies work; no data without policies.

  2. 16
    Securing your data

    Supabase. When the publishable key is safe in the browser.

  3. 17
    Database backups

    Supabase. Daily backup retention by plan, point-in-time recovery, two-minute recovery point.

  4. 18
    Project pausing

    Supabase. Free projects paused after a week of low activity.

  5. 19
    Pricing

    Supabase. Pro plan from $25 a month.

  6. 20
    Security

    Lovable documentation. Pre-publish scans and what they check.

  7. 21
    Secure vibe coding

    Lovable, June 2025. Security scan, reviewer, key protection, Supabase Security Advisor.

  8. 22
    Subscription plans

    Lovable documentation. Git sync on every plan.

  9. 23
    Webhooks

    Stripe. Signature verification, duplicates and retries.

  10. 24
    Idempotent requests

    Stripe. Safe retries for outgoing requests.

  11. 25
    Secrets Management Cheat Sheet

    OWASP. Storage, rotation and least privilege for secrets.

  12. 26
    About secret scanning

    GitHub. Catching committed secrets.

UK law and guidance

  1. 27
    UK GDPR Article 32: security of processing

    legislation.gov.uk. The duty to secure personal data appropriately.

  2. 28
    A guide to data security

    ICO. What appropriate security means in practice.

  3. 29
    Report a breach

    ICO. The 72-hour reporting rule and telling affected people.

  4. 30
    Data protection fee

    ICO. Who pays, the self-assessment and the tiers.

  5. 31
    Cyber Essentials overview

    NCSC. The government-backed baseline scheme.

Background

  1. 32
    Andrej Karpathy on vibe coding

    X, February 2025. Origin of the term.

  2. 33
    “Vibe coding” named word of the year by Collins Dictionary

    Euronews, 6 November 2025. Collins definition and word of the year.

Have a build brief already forming in your head?

Loomstrat Studio scopes, builds, and hands over production software in 3–6 weeks - fixed price, 100% repository ownership.

  • Reply within 24 hours
  • Fixed price before we start
  • Zero technical debt guarantee