A Lovable app is ready for production when every row level security policy compares the signed-in user with the row, no private key sits in a VITE_ variable, payments run live on a Stripe or Paddle account you control, and you have tested a backup restore. Lovable’s own documentation says its security checks cannot guarantee your app is secure.
This article is for founders who built a working product in Lovable and now need it to carry real users, real data and real money. It covers what Lovable’s documentation says you own, the five things that break first, how to test your database rules yourself, and when to stay on Lovable versus move part or all of the app elsewhere. For the builder-neutral version, see our AI-built app to production guide.
When a Lovable prototype is enough, and when it is not
Lovable positions itself as a way to build production-ready applications, and for many internal tools, landing pages and early pilots its managed hosting and built-in backend are enough. The platform itself holds SOC 2 Type II and ISO 27001:2022 certifications, according to its FAQ. Those certifications cover Lovable’s own operations. They do not certify the app you built on it, and your data rules, payment logic and server code are still yours to get right.
Lovable is direct about the limit. Its FAQ says the automatic and advanced checks “help, but they can’t guarantee that your app is secure,” and suggests considering a review by a security professional for apps that handle sensitive data or critical tasks. The same FAQ says Lovable is not HIPAA compliant and does not sign Business Associate Agreements. It adds that Lovable’s standard terms do not allow protected health information in the apps you build, and that teams with regulated data should contact its sales team before they build.
A practical line: once strangers can sign up, once you store anything about a person beyond an email address, or once you charge a card, treat the prototype as a draft that needs an engineering review.
The five things that break first
1. Row level security that checks the role, not the person
Lovable sets up row level security policies when it builds features that store user data. Its documentation explains the trap: a database role shows only whether someone is signed in, not who they are. “If a policy checks only for authenticated, every signed-in user gets the same access to every row that policy covers.” To keep one customer’s data from another, a policy has to compare the requester with an owner field in the row. Lovable’s policies view is read-only, and its docs say the view on its own “is not a full report,” because it shows the policies, not the permissions underneath them.
2. Server code that uses the service role
Newer Lovable apps include a server-only admin client that uses the service role. Lovable’s documentation states that policies do not apply to service role requests, so any server code that uses it must check permissions itself. This is why reviewing policies is not the whole job: a policy can be correct while a server function that uses the service role never checks who is asking.
3. Secrets in the wrong place
Lovable separates encrypted Secrets, which only reach Edge Functions and server integrations, from VITE_ variables, which are “embedded into the client bundle at build time.” The docs also tell you not to add .env to .gitignore, because Lovable needs that file committed to build previews. The consequence: if anyone ever pasted a Stripe secret key or an AI provider key into a VITE_ variable, it was built into the code sent to every visitor’s browser, and it is in the history of any Git repository the project syncs to. Rotating the key is the fix. Deleting the line is not.
4. Payments still on a test account
Lovable’s built-in payments run in test mode in the preview and process real cards only after you complete the go-live checklist. With Stripe, its documentation warns that the test account Lovable creates is temporary: “Stripe deletes it, with its products and prices, unless you take ownership of it before the deletion date the Payments tab shows.” Confirm who owns the live account, that webhooks reach the published app, and that a failed payment leaves the order in a sensible state.
5. Backups and logs you have never used
Lovable takes one database backup per day and keeps “up to roughly 14 days” of them. A restore cannot be undone and also reverts the schema, and backups do not include files in storage. A full export can be requested once every 24 hours. The built-in log viewer offers preset ranges going back up to 5 days, plus a custom start and end time for older windows. Lovable’s docs say the range the viewer offers does not tell you how long logs are kept, and for long-term retention they suggest building logging into the app. If a customer reports a problem from three weeks ago, that is past the roughly 14 days of backups, so plan your own log retention and keep your own export copies.
Row level security: the 2025 CVE record, and how to test yours
The public record most often cited on this topic is CVE-2025-48757, published on May 30, 2025. Its description reads: “An insufficient database Row-Level Security policy in Lovable through 2025-04-15 allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites.” The same record carries a dispute note: “this is disputed by the Supplier because each individual customer of the Lovable platform accepts a responsibility over protecting the data of their application.” The record is tagged as disputed, and the National Vulnerability Database lists its status as Deferred, so it carries no NVD analysis of its own. It describes Lovable through April 15, 2025 and says nothing about the platform as it is today. We cite it for one reason: on either reading of the dispute, the rules in your project are yours to verify, so a test is worth more than an assumption.
Lovable’s documentation says its apps rely on Supabase-compatible services, and Supabase’s own documentation states the general rule: “A table in an exposed schema without RLS is readable and writable by any role with a grant on it.” Its documentation also notes that adding policies does not take back grants the anon role already holds. A short test plan:
- Ask Lovable what is public. Its docs suggest the prompt “Which of my tables can people who aren’t signed in read or change?” Treat the answer as a starting list, not a verdict.
- Call the API with no session. Your app’s publishable key is visible in the browser by design. Use it from outside the app to request each table as an anonymous user. Anything sensitive that comes back is a finding.
- Test with two real accounts. Sign in as user A and try to read, change and delete user B’s rows by changing IDs in requests.
- Run the advisors. If you have moved to your own Supabase project, the Security Advisor, also available as
supabase db advisors, flags tables with row level security off and views that bypass it. - Write tests that stay. Supabase recommends a .sql file under supabase/tests/ that asserts allow and deny for select, insert, update and delete, so a later prompt cannot quietly loosen a rule.
- Read every service role code path. For each server function, confirm it checks who is asking before it touches data.
Our AI prototype security checklist and the 25-point production readiness checklist cover the rest of the pre-launch gate.
If you would rather have our team run this against your project, Book a Free 30 Minute Consultation and bring the project link.
Keep building in Lovable, export, or move off: a decision table
Lovable’s documentation says you are never locked in and describes four setups. Apps created from May 13, 2026 use TanStack Start, which runs server code, while older apps use React and Vite and build to static files. That changes which hosts can run your frontend. The Lovable editor and agent cannot be self-hosted; the apps can.
| Option | What Lovable’s docs say moves or stays | Choose it when |
|---|---|---|
| Everything on Lovable | Hosting, custom domain, built-in backend, AI calls and connectors all managed by Lovable. Git sync optional. | No compliance or data residency rule says otherwise, and the gaps above are fixed in place. |
| Frontend on your host, backend stays | Code moves through Git sync. TanStack Start apps need a host that runs server code; older Vite apps can go on static hosting. You set environment variables and sign-in redirect URLs on the new host. | You need your own deployment pipeline or hosting policy, and want to keep building in Lovable. |
| Backend in your own Supabase | Schema, policies and storage buckets move by SQL migrations. Data comes from a full export. Users keep their passwords, but signed-in users must sign in again. Auth providers, secrets, Edge Functions and scheduled jobs are set up again by hand. | You need the database under your own account, or controls the built-in backend does not offer. |
| Full move off Lovable | All of the above, plus replacing app connector and AI feature calls, which run through Lovable and are not exported. Lovable supports managed or self-hosted Supabase as backend destinations; plain PostgreSQL means building auth, storage and functions yourself. | You want the app to run with no Lovable service and have an engineer to own operations. |
Two cautions from the docs. A code export or domain change does not cancel your Lovable subscription or Cloud usage. And removing the Lovable database deletes your export and storage files, so download and verify them before you remove anything.
What we do: audit, fix, hand off
We work in three steps, and each one produces something you keep.
- Audit. We review the code, database policies, server functions, secrets, payment flow, hosting setup and backups, then deliver a risk-rated report that separates what must be fixed before launch from what can wait. Details are on the production readiness audit page.
- Fix. We fix the findings you approve, either inside Lovable through Git sync so you can keep prompting, or on the setup you choose from the table above. We add tests for access rules and core flows as part of that work.
- Hand off. You get the repository, a list of routes, tables and the rules that guard them, and the steps to restore a backup and rotate a key, so your next developer can own it.
Cost and how it is billed
Our rate is $150 to $250 per hour, depending on the work. Our production readiness audit starts at $2,500; see the audit page for what it includes. After the audit, the fix is scoped from the findings so you know the size of the job before it starts. For how quotes for this kind of work vary and why, see what it costs to fix an AI-built app. If your app was built in Bolt instead, the failure points differ; read taking a Bolt app to production.
Frequently asked questions
Is a Lovable app production ready?
It can be, after review. Lovable provides hosting, a managed backend and automated security checks, but its FAQ says those checks cannot guarantee your app is secure and suggests considering a professional review for apps that handle sensitive data. Check row level security, server code, secrets, payments and backups before you take real users.
Can I export my Lovable code?
Yes. Lovable’s Git sync keeps your code in your own GitHub, GitLab or Bitbucket repository with two-way sync. Its terms, as summarized in its docs, say the apps and code you create are yours. The database exports separately as a PostgreSQL archive, and storage files are downloaded on their own.
Can I move off Lovable without losing my users?
According to Lovable’s documentation, the database export includes user accounts with password hashes, so users keep their passwords when you restore into a Supabase project. Anyone signed in at the time must sign in again, and sign-in providers must be configured again at the destination.
Is Lovable HIPAA compliant?
No. Lovable’s FAQ states that Lovable is not HIPAA compliant and does not sign Business Associate Agreements. The same FAQ says its standard terms do not allow protected health information in the apps you build, and tells teams with regulated data to contact its sales team before they build. Settle where health data will live before you write the first feature.
Does Lovable’s security scan replace a code review?
No. Lovable describes its checks as static analysis of code and settings and suggests a penetration test before a major release. A human review adds what a scanner cannot judge: whether your access rules match your business, and whether server code that bypasses policies checks permissions itself.
What does it cost to have a developer fix a Lovable app?
It depends on what the review finds. Our rate is $150 to $250 per hour, and our production readiness audit starts at $2,500, as listed on the audit page. The fix is quoted from the audit findings.
Get a second opinion before launch
If your Lovable app is about to take real users or real payments, a short call is a quick way to find out how much work stands between it and launch. Bring the project link and your launch date.
Book a Free 30 Minute Consultation
Sources
| Fact used | Source | Read |
|---|---|---|
| Checks cannot guarantee security; professional review suggested; not HIPAA compliant, no BAAs; standard terms on health data; SOC 2 Type II and ISO 27001:2022 | https://docs.lovable.dev/introduction/faq | 2026-12-03 |
| Policies that check only for authenticated; service role skips policies; policies view is not a full report | https://docs.lovable.dev/features/database-access | 2026-12-03 |
| Secrets versus VITE_ variables; .env must be committed | https://docs.lovable.dev/features/secrets | 2026-12-03 |
| Test and live payments; temporary Stripe test account | https://docs.lovable.dev/features/payments | 2026-12-03 |
| Daily backups kept about 14 days; restore reverts schema; one export per 24 hours | https://docs.lovable.dev/features/database-backups | 2026-12-03 |
| Log viewer preset ranges up to 5 days; build your own retention | https://docs.lovable.dev/features/logs | 2026-12-03 |
| Static analysis versus penetration testing | https://docs.lovable.dev/features/security | 2026-12-03 |
| Never locked in; TanStack Start from May 13, 2026; editor cannot be self-hosted; Supabase as backend destination | https://docs.lovable.dev/tips-tricks/deployment-hosting-ownership | 2026-12-03 |
| What migrates and how; connectors and AI calls not exported; users keep passwords; subscription not cancelled by export | https://docs.lovable.dev/tips-tricks/external-deployment-hosting | 2026-12-03 |
| Two-way Git sync with GitHub, GitLab or Bitbucket | https://docs.lovable.dev/integrations/github | 2026-12-03 |
| CVE-2025-48757 description, dispute note, disputed tag and Deferred status | https://nvd.nist.gov/vuln/detail/CVE-2025-48757 | 2026-12-03 |
| Tables without row level security; grants not revoked by policies; tests under supabase/tests/ | https://supabase.com/docs/guides/database/postgres/row-level-security | 2026-12-03 |
| Security Advisor and supabase db advisors | https://supabase.com/docs/guides/database/database-advisors | 2026-12-03 |



