Skip to content
itsorted.online
AI guide

"Vibe Coding" Your Own Business App: What Can Go Wrong

Vibe coding means describing an app to an AI tool such as Lovable, Bolt, Replit or Cursor and letting it write the code, often without reading it. It is a fast way to build a booking form, internal dashboard or customer portal. The risk is that the app works on screen while leaving the database open to anyone, API keys visible in the browser, or pages reachable without logging in. This guide explains what typically goes wrong, what Singapore's PDPA expects once real customer data is involved, and a minimum review checklist before you go live.

By IT Sorted teamReviewed 8 min readHow we write guides
in

Key takeaways

  • AI app builders produce working screens fast but often skip database access rules and real authorisation.
  • A 2025 CVE found Lovable-generated sites whose databases could be read or written without logging in.
  • Under the PDPA your business, not the AI tool, is responsible for protecting customer data.
  • Never put secret API keys in front-end code; anything in the browser is public.
  • Run a security review, backups and a test with a second account before launch.
In this guide · 8 sections
  1. 01What vibe coding is, and where it works well
  2. 02What typically goes wrong in AI-built apps
  3. 03The Singapore lesson: PDPC and AI-written code
  4. 04Five risks to check in any vibe-coded app
  5. 05Minimum review checklist before customer data goes in
  6. 06Vibe code, hire a developer, or both?
  7. 07Do it yourself or get help?
  8. 08Frequently asked questions

Short answer

Vibe coding is fine for prototypes and internal tools without personal data. Before real customer data goes in, have someone check database access rules, logins, secret keys and backups, because AI-built apps often work while leaving data readable by anyone.

What vibe coding is, and where it works well

The term describes building software by prompting an AI and accepting what it produces, judging the result by whether it seems to work rather than by reading the code. Tools like Lovable, Bolt.new and Replit generate a full app, including a database and hosting, from a chat. Coding assistants such as Cursor, Claude Code and GitHub Copilot do the same inside a developer's editor. Our comparison of AI coding assistants covers the main tools.

Good uses

  • Clickable prototypes to test an idea with customers
  • Internal tools with no personal data (stock counts, price calculators)
  • One-off scripts you run yourself and then delete
  • Mock-ups to brief a developer

Risky without a review

  • Customer portals, sign-up forms and booking systems with personal data
  • Anything that takes payments or stores card or bank details
  • Apps that send bulk emails or messages to customers
  • Tools connected to your accounting, CRM or email

What typically goes wrong in AI-built apps

AI tools optimise for what you asked for. If you asked for "a member portal where clients see their invoices", you get screens that show invoices. You do not automatically get rules that stop client A from seeing client B's invoices. The common problems map closely to the OWASP Top 10 (2025), whose top two risks are broken access control and security misconfiguration.

ProblemWhat it looks likeOWASP 2025 category
Open databaseDatabase tables readable or writable by anyone with the public app keyA01 Broken Access Control
Pages without real login checksThe login screen hides a page, but its URL or API works without signing inA01 / A07 Authentication Failures
Secret keys in the browserStripe, OpenAI or email API secret keys shipped in front-end codeA02 Security Misconfiguration
Unchecked inputForms that accept scripts or database commandsA05 Injection
Outdated or fake packagesAI suggests libraries that are old, vulnerable or do not existA03 Software Supply Chain Failures
No logs or alertsNobody notices data being downloadedA09 Logging and Alerting Failures

This is not theoretical. CVE-2025-48757 describes an insufficient database row-level security policy in Lovable, through 15 April 2025, that let unauthenticated attackers read or write database tables of generated sites (NVD record). Lovable disputed it, stating that each customer is responsible for protecting their own app's data. Read that dispute carefully: whichever side you agree with, the platform's position is that the data is your problem.

The Singapore lesson: PDPC and AI-written code

Singapore has already had a data breach traced to AI-written code. In September 2026 the PDPC published a voluntary undertaking after an AI-generated bulk-email script exposed 95,364 customers' email addresses. The PDPC said the cause was the prompt and the missing review, not a fault in the AI tool. Our write-up of Singapore's first AI-related data breach covers the details.

Under the PDPA, your organisation must make reasonable security arrangements to protect personal data in its possession or control. Building the app with AI does not shift that duty to the tool vendor. If an AI-built portal leaks customer data, you may need to assess and notify the breach like any other, as explained in our guide to PDPA data breach notification. Past cases are on the PDPC enforcement decisions page.

Five risks to check in any vibe-coded app

1. Database access rules

Many app builders use a hosted database (often Supabase or Firebase) that the browser talks to directly with a public key. That design is only safe if access rules, such as Supabase row-level security, are switched on for every table and limit each user to their own rows. Ask the AI to list every table and its policy, then check them yourself.

2. Login and roles

Check that every page and API endpoint checks who the user is on the server, not only by hiding buttons. Admin functions need an admin role, and staff accounts need MFA.

3. Secret keys

Anything in front-end code can be read by anyone who opens the browser's developer tools. Secret keys for payments, email, AI APIs and databases must live on the server or in the platform's secrets store. If a secret was ever in the front end or a public repository, rotate it.

4. Personal data you do not need

AI tools happily add fields like NRIC, date of birth and full address. Collect only what the app needs. Under the PDPA, less data means less to protect and less to notify if something goes wrong.

5. Backups and ownership

Know where the database is hosted, who has admin access, how to export the data and code, and how to restore from a backup. If the builder's account is in one person's name, add a second admin.

Minimum review checklist before customer data goes in

Use this list before the first real customer signs up. Someone other than the person who prompted the app should run it.

Before go-live

If you cannot tick an item, or you do not know how to check it, treat the app as a prototype until someone who can read the code has reviewed it.

Vibe code, hire a developer, or both?

A sensible middle path is to vibe code the prototype yourself, use it to agree what the app should do, then have a developer review or rebuild the parts that touch personal data and payments. You keep the speed and pay for expertise only where it matters.

  1. Prototype with no real data

    Build the screens and flows with dummy records. Show them to staff and a few customers.

  2. Write down what it must do

    List users, roles, the data stored, integrations and what each role may see.

  3. Get a security review

    Have the database rules, logins, keys and data flows checked before launch.

  4. Fix or rebuild the risky parts

    Some apps need small fixes; others are cheaper to rebuild properly using the prototype as the brief.

  5. Plan maintenance

    Libraries, platforms and AI-generated code need updates. Decide who patches and monitors the app.

For typical prices for a properly built tool, see our guide to custom software development costs in Singapore.

Do it yourself or get help?

If your app holds no personal data and only you use it, the checklist above is usually enough. Once customers, payments or staff records are involved, get a second pair of eyes before launch.

Our Security Health Check (S$290) reviews accounts, access and exposed services and flags the urgent fixes. For a tool built properly from your prototype, our Custom Tool or Dashboard package (from S$1,990) delivers code you own, with access controls, backups and a handover.

Frequently asked questions

It is safe for prototypes and internal tools without personal data. For apps that hold customer data, take payments or connect to business systems, AI-generated code often works on screen while missing database access rules, server-side login checks or secret key protection. Have someone review those areas before real customer data goes in.

CVE-2025-48757 describes an insufficient database row-level security policy in Lovable through 15 April 2025 that allowed unauthenticated attackers to read or write database tables of generated sites. Lovable disputed the record, saying each customer is responsible for protecting their own app's data. Either way, check your app's database rules yourself.

Your business. Under the PDPA, organisations must make reasonable security arrangements to protect personal data in their possession or control, regardless of how the software was built. In Singapore's first AI-related breach case, the PDPC said the cause was the prompt and missing review, not the AI tool. You may also need to notify a breach.

Create two test accounts. Log in as the second one and try to open the first account's records, for example by changing an ID in the web address. Check whether pages and APIs work without logging in, and search the front-end code for secret keys. If any test succeeds, the app needs fixing before launch.

Not always. Small internal tools may only need fixes to access rules, keys and backups. Apps with many users, payments or sensitive data are often cheaper to rebuild properly, using the AI prototype as a detailed brief. A short security review first tells you which case you are in.

Rather have it done for you?

Fixed price, set up in your own accounts.

Order online, get a written scope, and keep full ownership of everything we set up. Questions first? Ask us in writing.