Is My Lovable, Bolt, or Cursor-Built App Secure?

By Bruce Hansen, Off the Rails Software Consulting · Updated · 5 min read

Short answer: the platform can be fine while your app is not. Lovable, Bolt, Cursor and friends generate and host software quickly; they do not automatically encode your product's authorization rules. Security is mostly about what your app allows a user to do, especially when the browser talks directly to Supabase or Firebase.

This article is a practical guide for founders. It does not rate any vendor as secure or insecure, and it is not a penetration test.

What "secure" has to mean for a vibe-built MVP

For a typical two-sided or B2B MVP, "secure enough to onboard real users" usually means:

  1. Users cannot read or change each other's data.
  2. Admin powers are not self-service.
  3. Secrets that can mint powerful access never ship to the browser.
  4. Payments and webhooks cannot be forged with DevTools.
  5. You can rotate credentials when something leaks.
  6. You know what you have not tested.

If you cannot demonstrate (1)–(4) with two test accounts, pause invitations.

Lovable + Supabase: the pattern to understand

Many Lovable apps use Supabase. The client uses a publishable key; Row Level Security enforces who sees which rows. Supabase documents that secret / service-role keys bypass RLS and must stay server-side (API keys).

Escape.tech's research on vibe-coded apps repeatedly called out misconfigured permissions and Supabase RLS as a primary theme (methodology, report).

CVE-2025-48757 describes insufficient RLS in Lovable-generated projects through mid-April 2025 (disputed by the supplier). Regardless of CVE politics, your job is to verify policies match your product.

Checks specific to Lovable/Supabase

  • RLS enabled on every table in exposed schemas.
  • Policies use auth.uid() (or your org model) — not using (true) on private data.
  • Storage buckets are not public unless the objects are meant to be public.
  • Edge Functions validate auth; they do not trust client-supplied user ids blindly.
  • No service_role key in client code, repo, or CI logs.
  • You ran Lovable's own security checker and manually reviewed the SQL policies it did not write for you.

Bolt.new and similar full-stack generators

Bolt and peers often scaffold Node/React apps with hosted backends. Same questions:

  • Where does authorization run — server or only UI?
  • Are preview URLs authenticated?
  • Did the generator drop an .env example that you copied into production with real keys?
  • Are CORS and cookie flags appropriate for your real domain?

Cursor-built apps (and other AI pair-programming)

Cursor is a powerful IDE agent. It will happily paste a SQL query or an RLS policy that "works" and is wrong. MITRE/OWASP categories do not care that a human typed the prompt.

Good habits:

  • Require tests for tenancy before merging auth changes.
  • Never paste production master.key / service-role keys into the agent.
  • Prefer migrations for RLS so policies are diffable in PR review.

Veracode's research that AI-generated code introduced OWASP Top 10 issues in 45% of benchmark tasks is a useful prior here (report).

A 60-minute self-test (all three tools)

  1. Build two users. Complete onboarding as each.
  2. IDOR pass. As user A, replay user B's record ids against your API/Supabase REST paths.
  3. Logged-out pass. Hit admin and account URLs without a session.
  4. Bundle pass. Download the production JS; search for service_role, sk_live, private keys.
  5. Webhook pass. Send a forged payment event without a valid signature; confirm it fails.
  6. Scanner pass. gitleaks on the repo (including history); npm audit or your stack's dependency audit.

Write down failures. Fix Critical ones before Product Hunt.

What built-in scanners miss

Existence checks ("is RLS on?") miss logic bugs ("can any member of any org delete invoices?"). Static scanners miss configuration in the cloud console that never hit git. Dynamic scanners miss business flows that need two tenants and a human.

That is why a short human review still pays — even when the platform badge is green.

When to bring in help

  • You are storing health, children's, or financial account data.
  • A design partner asked for a security review letter.
  • You cannot explain your RLS policies on a whiteboard.

Off The Rails' Ship-Ready Review is a senior engineer's pre-launch review (Quick Check $490) with human-verified findings. It is not a penetration test or compliance certification.

Example: proving a tenancy bug in fifteen minutes

Suppose your orders table has user_id and an RLS policy that only checks auth.role() = 'authenticated'. Every logged-in user can select * from orders. The UI only shows "my orders" because the React query adds .eq('user_id', me). An attacker ignores the UI and calls the REST path directly.

Detection: open the network tab, copy the request for your orders, change nothing but run it with user B's session — or use curl with user B's JWT. If B sees A's rows, you have a Critical finding.

Fix shape: policy should include auth.uid() = user_id (or your org membership join). Re-test with two users. Add a regression: a SQL test or an API test that asserts cross-user reads fail.

This is the single highest-value habit for Lovable/Bolt/Supabase apps. Do it for every table the client can touch, including storage objects metadata.

Red flags in generated pull requests

When Cursor or similar opens a PR, skim for:

  • New admin / role columns writable from the client schema
  • ignore RLS / service role usage in client components
  • dangerouslySetInnerHTML with model output
  • Webhook handlers created without signature checks
  • Copy-pasted API keys in README "quick start" snippets that look real

Train your team (even if the team is just you) to reject those before merge. Speed is the product of the generator; judgment is still yours.

After you fix things: keep a short changelog

Date, commit, what was fixed (e.g. "RLS on orders/invoices/storage"), what remains. That changelog is what you send when a design partner asks "did anyone look at security?" — better than a vague yes.

FAQ: quick answers founders actually ask

Does Lovable's security checker mean I am done? No. Treat it as a linter. You still need policies that match your product and a two-user test.

Is Bolt safer than Lovable (or the reverse)? Security depends on your authorization and secrets handling, not the logo on the generator. Evaluate the app you shipped.

Can Cursor "just fix security"? It can propose patches. Someone who understands your threat model still has to review them. Agents invent plausible policies that are wrong.

The two-user test is non-negotiable. If you only remember one habit from this page, remember that.

Further reading

Want a second set of eyes before launch?

A Ship-Ready Review is a senior engineer's pre-launch code and security review with human-verified findings. Quick Check $490. It is not a penetration test or compliance audit.

Book a Free 30-Minute Consult

Tell me what you're building or what's stuck. I'll reply with next steps, usually within one business day.

Get In Touch

Email
hello@offtherails.pro
Phone
(385) 743-8966
Location
Salt Lake City, UT · Remote across the US

Why Choose Me?

  • 10 years shipping production software
  • 5 long-term fractional clients, most for 2+ years
  • AI agents, MCP servers, Rails + React
  • Based in Salt Lake City, working remotely US-wide

What happens next

  1. I read your message and reply within one business day.
  2. We schedule a free 30-minute consult call.
  3. You get a clear recommendation and next steps, no obligation.

Prefer email? hello@offtherails.pro