Vibe-coded software is not automatically insecure, but it often ships with avoidable risks: API keys in front-end code, databases without access rules, missing input validation, weak authentication, outdated packages and no logging. These issues appear because AI tools optimise for working features, not security, and builders may not review the code. Before launch, run a security checklist, fix exposed secrets and access rules, and have someone with security experience review anything handling personal data or payments.
- ✓AI tools optimise for working features, not secure ones
- ✓Exposed keys and open databases are the most common problems
- ✓Validate input, secure authentication and update packages
- ✓Run a checklist before any real user data goes in
- ✓Get expert review for payments, health or personal data
Why are vibe-coded apps often insecure?
Vibe coding means building software by prompting an AI tool and accepting what it produces. The tools are very good at making features work, and a working demo feels finished. Security is mostly invisible: nothing on screen tells you the database is readable by anyone, or that a secret key is shipped to every browser. If no one reviews the code, those gaps reach production.
What are the most common risks?
What should you check before launch?
-
1
Find and move secretsSearch the code for keys; keep them on the server or in a secrets manager and rotate any that were exposed.
-
2
Lock down the databaseTurn on row-level or record-level access rules so users only see their own data.
-
3
Check authorisation on every requestConfirm each API checks who the user is and what they may access.
-
4
Validate all inputCheck type, length and format on the server, not only in the browser.
-
5
Use proven authenticationPrefer an established auth provider over custom login code.
-
6
Update dependenciesRemove unused packages and update the rest; check every package actually exists and is reputable.
-
7
Add rate limitsLimit sign-in attempts and API calls.
-
8
Turn on logging and alertsRecord errors and suspicious activity.
-
9
Test with a second accountTry to see or change another user’s data.
-
10
Get a reviewHave someone with security experience check anything sensitive.
These checks follow the same principles as our API security best practices.
Can AI help you secure the code?
Yes, as a first pass. Ask your coding agent to review the code for security issues, list where secrets are used, and explain how access is controlled. Security scanners and dependency checkers catch many common problems automatically. Treat AI review as a helpful second pair of eyes, not a guarantee: it can miss issues and can be confidently wrong.
How much review does an app need?
- Key visible in the browser
- Any user can read all records
- Forms accept anything
- No idea who did what
- ✓Secrets on the server, keys rotated
- ✓Access rules on every table
- ✓Server-side validation
- ✓Logs and alerts in place
What does a real problem look like?
A founder builds a booking app for fitness classes with an AI app builder over a weekend. It works: members sign up, book classes and pay. A friend with security experience opens the browser’s developer tools and finds the database key in the page source. With it, anyone can download every member’s name, email and booking history, or delete records. The fix takes an afternoon: move database calls behind server functions, turn on row-level access rules so members only see their own bookings, rotate the exposed key and add a test that tries to read another member’s data. Nothing about the app’s appearance changed, but it became safe to launch.
What should you do after launch?
- Watch error logs and alerts weekly
- Update dependencies monthly
- Rotate keys if a team member leaves
- Re-run the checklist before major releases
- Have a simple plan for what to do if data is exposed
How do you build securely from the start?
- Write security requirements into your spec, for example “users can only see their own orders”
- Choose platforms with built-in authentication and access rules
- Keep the project in version control and review changes
- Ask the agent to write tests for access rules
- Schedule a review before every major release
Our guide to spec-driven development shows how to put requirements like these in writing.
A few hours of checking before launch is far cheaper than dealing with a data leak afterwards.
Keep the checklist in your repository.
How UIUX Studio helps
We review and harden vibe-coded apps, rebuild what needs rebuilding and set up secure foundations for growth. Talk to our product engineering team.
