East Anglia’s largest AI eventAI Festival 202717 and 18 February, Bury St EdmundsGet ticketsTickets
Secure and fix

Vibe coded your app? 10 security fixes to make before real users arrive

AI coding tools let anyone ship an app in a weekend. The research is now clear on what they get wrong, and most of it is fixable in days, not months.

Vibe coding has changed who gets to build software. A founder with an idea, a clinician with a workflow problem or a marketing lead with a tool in mind can now describe what they want to an AI and watch a working app appear. That is a genuine breakthrough, and we use these tools ourselves. But a vibe coded app is rarely ready for real users without some fixes.

The catch is that "working" and "safe to put in front of customers" are not the same thing. AI coding tools are brilliant at making something that runs. They are much less reliable at making something that is secure, stable and ready for real data.

What the evidence says about AI generated code

This is no longer a hunch. In 2025 Veracode tested more than 100 large language models on 80 coding tasks and found that 45% of the AI generated code failed security tests based on the OWASP Top 10, the industry's standard list of the most common web vulnerabilities. Newer models did not do meaningfully better.

The real world incidents tell the same story:

  • Missing database rules. In 2025 researchers found apps built on one popular AI app builder with no row level security on their Supabase databases. A scan of 1,645 apps found 303 vulnerable endpoints across 170 of them, meaning anyone could read or change data.
  • Open storage buckets. The Tea dating safety app exposed users' identity documents through an unprotected Firebase storage bucket in July 2025, followed days later by more than a million private messages.
  • Hardcoded secrets. A January 2026 study of 38,630 Android AI apps found 72% contained hardcoded secrets such as API keys.
  • A growing CVE count. Georgia Tech's Vibe Security Radar logged 74 confirmed vulnerabilities linked to AI generated code by March 2026, rising from 6 new ones in January to 35 in March.

None of this means you should stop vibe coding. It means you should finish the job.

The 10 fixes vibe coded apps most often need

These are the issues we find again and again when we review AI built apps. Work through them in order: the first four are the ones that cause headlines.

1. Lock down your database

If your app uses Supabase, Firebase or a similar backend, check that every table has access rules. In Supabase that means row level security switched on, with a policy for each table. In Firebase it means security rules that do not default to "allow read, write". This is the single most common serious flaw in vibe coded apps.

2. Get secrets out of the front end

API keys for OpenAI, Stripe, your database or email provider should never sit in code that runs in the user's browser or in a mobile app bundle. Move them to the server, to environment variables or to a secrets manager, then rotate every key that was ever exposed. Deleting the line is not enough if the old key still works.

3. Check who can see what

AI tools are good at building login screens and poor at authorisation, the rules that decide which logged in user can see which record. Test it yourself: log in as one user, copy a link or ID for their data, then log in as a different user and try to open it. If you can, so can anyone.

4. Protect every API route

Every endpoint that reads or changes data needs to check who is calling it. Look for routes the AI created for "admin", "debug" or "test" purposes and remove or protect them.

5. Validate everything users send you

Never trust input from a form, a URL or an upload. Validate types and lengths on the server, use parameterised database queries, and encode output so user content cannot inject scripts into other people's screens. Cross site scripting is the flaw AI tools fail most often.

6. Check every package the AI added

AI assistants sometimes suggest software packages that do not exist. Attackers have started registering those invented names with malicious code, a trick now called "slopsquatting". One study found nearly 20% of AI suggested packages were not real. Check each dependency exists, is maintained and is the one you meant.

7. Add rate limits and spending caps

If your app calls a paid AI model, a single bot can run up a large bill overnight. Add rate limiting to logins, sign ups and any endpoint that costs money, and set hard spending limits with your AI and cloud providers.

8. Handle errors without leaking detail

Default error pages often reveal stack traces, file paths or database messages that help an attacker. Show users a friendly message and send the detail to your logs instead.

9. Make sure you can see what is happening

Turn on logging for logins, failed access attempts and admin actions, and set up alerts for unusual activity. If something goes wrong you need to know quickly, and if personal data is involved you may need to report it to the ICO within 72 hours.

10. Back up, and test the restore

Automated backups are only useful if you have restored from one at least once. Check how often backups run, where they are stored and how long a restore takes.

Vibe coded apps need stability as much as security

Security flaws make the news, but stability problems lose you customers more quietly. Vibe coded apps often work well with ten users and fall over with a thousand. Common causes include database queries that load everything at once, no caching, large files served straight from the app and no separation between test and live environments. A short load test before launch will tell you where the ceiling is.

There is also the question of maintainability. Research covered by IBM found AI assisted pull requests carried 2.74 times more security issues than human only ones, and code that has been regenerated many times can become hard for anyone to understand. Before you scale, it is worth having a person who knows what they are looking at read the code and tidy the worst of it.

If you sell to the NHS, government or large companies

Buyers in regulated sectors will ask questions your AI tool did not think about. From April 2026, Cyber Essentials requires multi factor authentication on every cloud service that offers it, and publicly available web applications are in scope by default. G-Cloud 15 requires suppliers to hold Cyber Essentials within 12 months of award. If you handle health data you will also meet the NHS Data Security and Protection Toolkit and, for digital health products, the DTAC assessment.

How we help

Orbital reviews and fixes vibe coded apps. We are Cyber Essentials certified, we have built software for the NHS, the Ministry of Justice and the Gates Foundation, and we build with the same AI tools you do, so we know where they cut corners.

A typical engagement starts with a security and stability review of your app, a prioritised list of fixes, and then the fixes themselves, so you can launch with confidence rather than hope. If the app is part of a bigger plan, our Value Map looks across your business and its data to show where it fits and what else is worth building.

Book a call and tell us what you have built.

Frequently asked questions

Is vibe coding safe?

Vibe coding is a fast way to build, but the code it produces needs checking before it handles real users or personal data. Independent tests found 45% of AI generated code failed standard security tests, so treat the output as a first draft, not a finished product.

What is the most common security flaw in vibe coded apps?

Missing database access rules, such as Supabase row level security or Firebase security rules left open, followed closely by API keys exposed in front end code.

How long does it take to fix a vibe coded app?

For a typical small app, a review takes a few days and the critical fixes often take one to two weeks. Larger or more complex apps take longer, especially if the code needs restructuring before it can scale.

The Value Map

You don’t know what you don’t know. We do the looking.

A clear map of the value in your business, in priority order. Drawn by a team whose innovations have reached millions of lives and generated tens of millions in revenue, so every win on it is one we know how to capture.

  • From £5,000A fixed fee, agreed up front. No surprises.
  • Wins in priority orderEvery opportunity sized, costed and ranked, quick wins first.
  • Yours to keepTake it forward with us, your own team or anyone you choose.