Skip to content
Leakwise

Is my Lovable, Bolt or Cursor app secure? A 10-minute check

Not by default. AI app builders write working code fast, but they often leave a database open, ship a secret key to the browser, or skip server-side checks. Six checks take about 10 minutes and catch the most common problems.

Why do AI-built apps have security gaps?

Lovable, Bolt, Cursor and Claude Code aim for an app that works. Security is rarely what you asked for, so it is rarely what you get. The same few mistakes show up again and again. Here are six checks, in the order I would do them.

1. Are there secret keys in my JavaScript?

Open your live site, then DevTools, then Sources. Search for sk_live, service_role, secret and PRIVATE KEY. Anything in browser code is public. Public keys such as the Supabase anon key or a Stripe publishable key are fine. Secret keys are not. If you find one, rotate it first and fix the code second. See the service_role guide.

2. Can anyone read my database?

If you use Supabase, this is the big one. Tables without Row Level Security can be read by anyone with your public anon key. Test each table with one curl request. The steps are in how to check Supabase RLS.

3. Are my source maps public?

A .js.map file lets anyone rebuild your original source code, including comments and internal routes. Request one of your bundle URLs with .map added. If it downloads, turn maps off. See the source maps guide.

4. Do I send basic security headers?

Run curl -I https://your-site.com and look at the response headers. Useful ones include Strict-Transport-Security, X-Content-Type-Options, Content-Security-Policy and a frame policy such as X-Frame-Options. Also check that your session cookies are marked Secure and HttpOnly. Missing headers rarely cause a breach alone. They make other bugs easier to exploit.

5. Am I running old libraries with known bugs?

Run npm audit in your project and read what it reports. Check your framework version too. For Next.js, the middleware bypass is worth knowing about. See the CVE-2025-29927 guide.

6. Is auth enforced on the server?

Hiding a button in the UI is not security. Every API route and server action must check who is calling and what they may do. A quick test: sign out, then call one of your API routes directly with curl. If it still returns private data, the route is open. Do the same with a second test user and another user's record ID.

What if I find something?

Fix leaked keys and open tables first, because they are the quickest way to lose data. Then work down the list. If the app handles payments or personal data and you want a person to read the code, a human audit covers Supabase, Stripe, auth and dependencies.

Check your app

The free scan reads only what a browser downloads and takes under a minute. For a person to review your code, there is a human audit.