Open your Supabase project, go to the Table Editor, click any table with user data, and check whether Row Level Security shows “Enabled” or “Disabled” in the top right. If it says disabled, every row in that table is readable by anyone with your anon key, which is sitting in your site’s JavaScript bundle right now. This is the single most common Lovable app problem we see, and it is fixable in minutes once you know it is there. We’ve reviewed a lot of Lovable builds over the past year, and the pattern is consistent enough that we can usually guess what’s wrong before we open the repo.
What Lovable actually gets right
Lovable deserves credit for the part founders care about most on day one: the interface looks finished. Component layout, spacing, responsive breakpoints, loading states, it generates all of that convincingly, often better than what a solo founder would have briefed a freelancer to build in the same time. The chat-driven iteration loop is genuinely good for shaping a product around feedback, and the Supabase integration means you get a real database and real auth provider from the start rather than a toy backend. None of what follows is a knock on the tool choice. It’s a description of where the gaps sit once you look past the screen you’re staring at.
The problems that keep repeating
Supabase RLS left open. Lovable wires up Supabase quickly, but it doesn’t reliably turn on Row Level Security, and even when it’s enabled, the generated policies are often USING (true), which is the same as no policy at all. We cover this pattern in more depth in our piece on Supabase mistakes in AI-generated code, but the short version for Lovable specifically: the AI tends to prioritise getting the feature working in the preview over locking down who can see what, and once a feature works, nobody goes back to tighten it.
Authorisation checks that only exist in the UI. This is subtler than the RLS issue and more dangerous because it hides until someone goes looking. A Lovable app will happily hide an “Admin” button from users without the right role, and that satisfies the person testing it in the browser. But the API route or Supabase function behind that button usually has no server-side check at all. Anyone who opens dev tools, copies the request, and changes a user ID gets the same access as an admin. We find this in a large share of the SaaS dashboards we’re asked to review.
Giant components that every edit rewrites. Ask Lovable to add a field to a form, and it will often regenerate the entire component the form lives in, including unrelated logic nearby. This isn’t really a Lovable-specific flaw so much as a consequence of how these tools edit code, but Lovable’s output tends toward larger single-file components than, say, Bolt’s, which makes the blast radius of each change bigger. We’ve opened 600-line components that handle form state, API calls, modal logic and page layout all in one file, with no clear seam for a human developer to edit safely without re-reading the whole thing.
Environment settings that only exist in the Lovable preview. Lovable’s preview environment quietly sets things that your production deploy doesn’t: redirect URLs for auth, CORS origins, sometimes environment variables pasted directly into the project rather than stored as secrets. The app works perfectly in the builder and then breaks in specific, confusing ways once it’s live on a real domain, usually around login redirects or API calls that get blocked by CORS.
How serious each one is
| Problem | Risk | Quick check |
|---|---|---|
RLS disabled or USING (true) policies | High, direct data exposure | Open each table in Supabase, check RLS status, then read the actual policy text |
| Authorisation only in the UI | High, privilege escalation | Open dev tools, find the API call behind a restricted action, replay it as a lower-privilege user |
| Giant unstructured components | Medium, slows every future change, raises bug risk | Search your codebase for files over 300 lines; each one is a future rewrite waiting to happen |
| Preview-only environment settings | Medium, breaks silently in production | Compare your production auth redirect URLs and CORS origins against what’s set in the Lovable project settings |
The first two are the ones that matter most if you’re handling any real user data or payments. The second two are mostly operational pain, but they’re exactly the kind of thing that turns a two-hour production deploy into a two-day debugging session.
A self-check for your Lovable project
Run through this before you send traffic to a Lovable app, or before you hand it to anyone else:
- In Supabase, open every table. Confirm RLS is enabled and read the actual policy, not just the toggle.
- Pick your three most sensitive actions (deleting data, changing roles, viewing other users’ records). For each one, open the network tab, find the underlying request, and try firing it directly with a lower-privilege session.
- Grep your codebase for files over 300 lines. These are the components that will fight you hardest on the next feature request.
- Compare your Supabase auth settings, redirect URLs, and any environment variables between the Lovable preview and your production domain. They will not match by default.
- Check whether API keys or secrets are hardcoded in frontend code rather than pulled from environment variables; Lovable sometimes pastes a key straight into a component when a developer would reach for
.env.
If you want a sense of how Lovable’s gaps compare to the other major builders, our comparison of Cursor, Bolt and Lovable walks through where each tool tends to leave its scars. And if performance is the thing nagging at you rather than security, that’s a separate piece: see why your Lovable app is slow and how to fix it. Bolt users will recognise some of this too, since the problems overlap more than the marketing for either tool would suggest, as we wrote in the problems we see most in Bolt.new apps.
One more thing worth doing early, regardless of what the audit turns up: make sure you actually hold the keys to your own project. Export and own your Lovable app’s code and data before you need to, not after a dispute or an outage forces the question.
Built it on Lovable and something feels off? We’ll take a look for free, just tell us about your project.