10.3%
of 1,645 scanned Lovable apps exposed their database
CVE-2025-48757: 170 apps with missing row-level security, 303 vulnerable endpoints. Whoever migrates your app should audit every policy.
Matt Palmer: CVE-2025-48757 ↗Lovable migration services by X & Company
Your Lovable code already syncs to GitHub. Your database, users, files, secrets and AI calls live on Lovable Cloud. X & Company moves all of it to your own Supabase or your own servers, without breaking a single login.
Lovable by the numbers
From Lovable’s pricing page and docs, plus the most-cited security disclosure in vibe coding. The good news is at the end: your code is already yours.
10.3%
CVE-2025-48757: 170 apps with missing row-level security, 303 vulnerable endpoints. Whoever migrates your app should audit every policy.
Matt Palmer: CVE-2025-48757 ↗5 GB
One export every 24 hours, from Advanced settings. Bigger databases go through Lovable support.
Lovable Docs: Advanced settings (Cloud export) ↗0
It carries schema, data, policies and auth users. Files, edge function code and secret values move separately.
Lovable Docs: Advanced settings (Cloud export) ↗$25/mo
Plus 5 daily credits. Monthly credits expire after two months, so unused capacity doesn’t bank for long.
Lovable pricing ↗20
Every plan gets a monthly Cloud grant. Bigger apps can start paying for hosting and database on top of the plan.
Lovable pricing ↗All plans
Your React, Vite and Tailwind frontend is already in a repo you control. That’s the easy part of a Lovable migration.
Lovable Docs: GitHub integration ↗Lovable Cloud is built on Supabase’s open-source foundation (Lovable Docs). Checked September 2026; confirm current plans on lovable.dev.
Why teams leave Lovable
Lovable is one of the best ways to go from idea to working app. Once real users and revenue arrive, most teams want to own the backend, the bill and the security story.
Lovable Cloud runs your database, auth, storage and edge functions on a Supabase foundation that Lovable manages. The code syncs to GitHub. The backend doesn’t.
Build credits pay for every prompt. Cloud usage past the monthly grant is billed on top. Monthly credits expire after two months.
CVE-2025-48757 showed how easily generated apps ship with missing row-level security. Customers and auditors will ask how yours is protected.
Lovable AI routes model calls through Lovable’s gateway and bills them as usage. Your own OpenAI, Anthropic or Gemini account gives you limits, pricing and terms you control.
Instance size, storage and limits are changed through Lovable’s settings and billed through Lovable. Bigger apps pay more on top of the plan.
Production apps need staging, code review, tests and rollbacks. Those are much easier once the whole stack lives in your repo and your cloud.
What a Lovable migration involves
Since July 2026, Lovable Cloud has an official export. It’s a real help, and it still leaves the storage files, secrets, AI calls and jobs for someone to move by hand, in the right order, without logging anyone out.
# .env
- VITE_SUPABASE_URL=https://<lovable-cloud-project>.supabase.co
+ VITE_SUPABASE_URL=https://<your-project>.supabase.co # or your own API
# supabase/functions/chat/index.ts
- fetch("https://ai.gateway.lovable.dev/v1/chat/completions", { headers: { Authorization: `Bearer ${LOVABLE_API_KEY}` } })
+ fetch("https://api.openai.com/v1/chat/completions", { headers: { Authorization: `Bearer ${OPENAI_API_KEY}` } })
# src/integrations/supabase/client.ts stays the same — it just points somewhere you own.Two ways off Lovable
Lovable Cloud is built on Supabase’s open-source foundation, so there are two clean exits. The audit tells you which one fits your app, budget and compliance needs.
Move Lovable Cloud into a Supabase project you own. The code barely changes, and you get the Supabase dashboard, backups and billing directly.
Run PostgreSQL, auth, storage and your API on AWS, a VPS or on-prem. The most control, the clearest compliance story and the most predictable bill.
The X & Company process
The same method on every project, whether it’s a small internal tool or a SaaS product with paying customers. You always know what’s happening, what’s next and what it costs.
We clone your repo and inventory every table, RLS policy, auth provider, storage bucket, edge function, secret, cron job and Lovable AI call. Every policy gets a security review.
Your own Supabase project, or PostgreSQL, auth and storage on your servers. Edge functions are redeployed, cron jobs recreated, and Lovable AI calls moved to your own model provider.
We restore the Cloud export with auth users and password hashes intact, copy every storage file, rewrite file URLs and re-link OAuth sign-ins, so nobody has to reset a password.
We deploy the frontend to your host, run a final sync, move your domain off *.lovable.app with a rollback plan ready, and hand over the repo, runbooks and every key.
Lovable Cloud vs. your stack
A fair comparison. Lovable is a strong place to start. Your own stack is where you go when control, cost predictability and security reviews start to matter more than build speed.
| Topic | Staying on Lovable | After migration |
|---|---|---|
| Code | Two-way GitHub sync on every plan | Same repo, plus CI, reviews and tests |
| Database | Lovable Cloud; 5 GB export once a day | Your Supabase or Postgres, full access & backups |
| Auth & users | Managed inside Lovable Cloud | Your auth, same users, same passwords |
| Storage | Cloud buckets, not in the export | S3, R2 or Supabase Storage you own |
| AI features | Lovable AI gateway, billed as usage | Your OpenAI, Anthropic or Gemini accounts |
| Pricing model | Build credits + Cloud usage past the grant | Infrastructure cost you can see and tune |
| Security | RLS generated by prompts | Policies reviewed, tested and documented |
| Releases | Publish from the editor | Staging, CI/CD and one-command rollbacks |
What you get
X & Company delivers a working production system on infrastructure you own, and a team that understands how it works.
Talk to X & CompanyYour repo in your GitHub organization, building and deploying without Lovable in the loop.
Every table and RLS policy moved, reviewed and tested, with backups and every row reconciled.
Accounts, password hashes and OAuth sign-ins carried over, so customers log in like nothing happened.
Your server behind Nginx with Certbot SSL, firewalling and monitoring. AWS, a VPS or on-prem.
Push to main and ship. Staging and production environments you can reason about.
Docs for deploys, backups, restores and on-call, plus a walkthrough with your team.
Readiness check
Tick every statement that’s true for your app. It takes 20 seconds.
Your score updates as you go. Nothing is sent anywhere; it all runs in your browser.
Get an expert opinionCost calculator
Move the sliders to match your situation. The numbers are illustrative and use your own inputs, and cost is rarely the only reason teams migrate. It still helps to see it.
Free Lovable migration guides
Everything we’ve learned about getting off Lovable, written up in plain language. If you decide you’d rather have it done for you, we’re one click away.
From GitHub sync to switching DNS. Eight steps covering code, database, users, files, secrets, AI calls and hosting.
Read guideWhat the official Lovable Cloud export includes, what it leaves out, and how to move the rest without losing a row.
Read guideA migration is the best time to fix security. What CVE-2025-48757 taught us, and a checklist for RLS, keys, auth and storage.
Read guideDone for you
X & Company takes your Lovable app from audit to live on your own server, for a fixed-scope quote.
Get a free assessment →Questions
Yes. Lovable offers two-way GitHub sync on every plan, including Free. Your React, Vite and Tailwind frontend, plus the Supabase migrations and edge function code in the project, live in a repository you own. What GitHub doesn’t carry is the live backend on Lovable Cloud: the data, storage files, secrets and deployment.
Since July 2026, Lovable Cloud has an official Export action in Advanced settings. It creates a backup with your schema, data, security policies and auth users, up to 5 GB and once every 24 hours. Storage files, edge function code and secret values aren’t in it, so those are moved separately. Larger databases go through Lovable support.
Usually not. The Lovable Cloud export includes auth users with their password hashes, so users can sign in with their existing passwords after the move. We also re-link OAuth sign-ins like Google and GitHub on your own provider accounts, and test every sign-in method before cutover.
Moving to your own Supabase project is the fastest path: the code barely changes and you get full dashboard access and direct billing. Full self-hosting on AWS, a VPS or on-prem gives you the most control and the clearest compliance story. The audit recommends one based on your app, budget and requirements.
CVE-2025-48757, disclosed in 2025, found that 170 of 1,645 scanned Lovable apps (about 10%) had database tables readable or writable without proper row-level security. Lovable improved its defaults afterwards, but policies generated by prompts still deserve a human review. We audit and test every RLS policy as part of the migration.
Lovable AI calls models through Lovable’s gateway with a Lovable key. We point those edge functions at your own OpenAI, Anthropic or Google account instead, which gives you your own rate limits, pricing and data terms.
If you move to your own Supabase project, you can connect it to Lovable and keep prompting while developers work in the same GitHub repo. Many teams do that for a while, then move to tools like Cursor or Claude Code as the codebase matures.
Scope depends on data size, storage, edge functions, integrations and which path you choose. You get a fixed timeline and quote after the audit. Downtime is minimal: the new stack is tested in parallel, then a brief write freeze covers the final sync before your domain moves over.
No. This is an independent resource run by X & Company, a software studio that provides Lovable migration services. Lovable is a trademark of its owner.
Tell X & Company about your app. You’ll get a straight answer on scope, timeline and cost, and a plan to own your whole stack.