Is Lovable Secure? The 2025 Incident and a Checklist for Your App
Founder & CTO, Buttercloud
Lovable is one of the fastest ways a non-developer has ever had to turn an idea into a working product. It is also the platform most often named when people talk about vibe coding going wrong. Both things are true, and the question founders actually type into Google, “is Lovable secure?”, deserves a straighter answer than either the fans or the critics give.
Here is the short version. Lovable secures its own platform reasonably well. It does not, and cannot, secure the app you build on it. The incidents that made the news were not breaches of Lovable. They were apps whose database rules were never set, published to the internet by founders who did not know there were rules to set. That distinction is the whole article, so let’s go through it properly: what Lovable protects, what it leaves to you, what happened in 2025 and again in 2026, and the checks to run on your own app this week.
What Lovable Secures For You
Credit where it is due, because the list has grown a lot since early 2025.
Secrets stay out of your code. When your app needs an API key, Lovable asks for it through a secure input and stores it as a backend secret, in your Supabase project if you have connected one. Lovable’s documentation states that secrets never appear in your app’s code or repository and that Lovable does not read stored values back. If you paste a key into the chat by mistake, Lovable detects it and redirects you to Secrets.
Custom domains get TLS automatically. Point an A record and a verification TXT record at Lovable and it issues and renews a certificate for you, with TLS 1.2 or newer enforced. You cannot weaken that setting even if you try.
A security scan runs every time you publish. As of 2026 a Quick scan runs in the background when the publish dialog opens. It checks your database access rules, including row-level security mistakes, your dependencies for known vulnerabilities, and whether an MCP server is exposed without authentication. A Deep scan, run on demand, reads the application code itself for access-control gaps, unauthenticated endpoints, injection, leaked secrets and payment logic. Workspace admins can turn on a setting that blocks publishing while critical findings are open. In June 2026 Lovable described the basic scan as running on every publish, with dependency checks on every edit.
Stripe keys never reach the browser. The Stripe integration stores your secret key as a backend secret and calls Stripe from edge functions, so the key is not in your frontend bundle.
The platform itself. Lovable’s security page describes encrypted secrets, regional hosting for Lovable Cloud, and says the company supports SOC 2 and GDPR requirements for enterprise review. It does not list a held certification on that page, so if you need one for a procurement questionnaire, ask them directly.
That is a real security posture. It is also, in Lovable’s own words, not enough on its own. The security documentation says the tools “do not replace a thorough security review” and that you are responsible for ensuring your app meets the security requirements appropriate for its use case. Keep that sentence in mind for the next section.
What Lovable Leaves To You
Everything about your data model.
A typical Lovable app talks to its Supabase database straight from the browser, using a publishable key that anyone can read from the page source. That is a legitimate design, and Supabase documents it plainly: the publishable key is safe in a browser only because it reaches nothing more than row-level security allows. If row-level security is off on a table, or on with a policy that says “everyone may read everything”, the public key reads everything. No exploit. No malware. A different URL in a browser.
Lovable now generates basic policies when it builds a feature that stores user data, and its scanner flags tables without any. But whether a policy is correct for your app, whether a team member of company A can see company B’s invoices, whether a deleted user’s rows disappear, whether the admin flag can be set by the user it belongs to: that is logic only you know, and no scanner can infer it. We cover how to check and write these policies in our guide to Supabase row-level security for founders.
The same is true of who has access to your Lovable workspace, your GitHub repository and your Stripe account, whether your database has backups, and what your DNS looks like. Lovable gives you the controls. It does not know whether you have used them.
What Actually Happened: CVE-2025-48757
The facts, with dates, from the researcher’s own disclosure and the NVD record.
On 20 March 2025, Matt Palmer, who works in developer relations, found that a Lovable-built site called Linkable exposed its users table to anyone who modified a query. On 21 March they emailed Lovable and ran a scan of 1,645 Lovable-generated apps: 303 endpoints across 170 projects, roughly one in ten, had inadequate row-level security. The exposed data included names and email addresses, third-party API keys stored in tables, and transaction and subscription records, including the ability to change a payment status to “paid”.
Lovable confirmed receipt on 24 March. On 14 April an engineer at another company tweeted about the same class of issue publicly, and Palmer re-notified Lovable with a formal disclosure and a 45-day window. On 24 April Lovable shipped version 2.0 with its first security scan, which Palmer’s statement criticised for checking only that a policy existed, not that it did anything. On 29 May the 45 days ran out and the CVE was published. NVD lists it with a CVSS 3.1 score of 9.3, critical, and a note that the supplier disputes it because each customer accepts responsibility for protecting their own application’s data.
Both sides are right about something. Palmer is right that the defaults at the time generated insecure apps at scale and that an existence check is not a correctness check. Lovable is right that the database is the customer’s, that Supabase’s shared-responsibility model has always put policies on the implementer, and that the same mistake can be made in any tool. What nobody disputes is the mechanism: an app published with the rules off, and nobody in the loop who knew to look.
It Happened Again in 2026
On 27 February 2026, The Register reported that a researcher, Taimur Khan, had found sixteen vulnerabilities, six of them critical, in a single Lovable-hosted app featured on Lovable’s own Discover page. The backend was a Supabase database with no row-level security and no role checks, and an AI-written authentication function had its logic inverted, admitting unauthenticated users and blocking logged-in ones. Around 18,700 user records were exposed, including students and teachers at named universities.
Lovable’s response, quoted in the article, is the shared-responsibility position stated plainly: every project gets a free security scan before publishing, implementing its recommendations is up to the user, and in this case that implementation did not happen. The company also noted the database was not hosted by Lovable and the project contained code Lovable did not generate.
A year after the CVE, with a scanner in place, the failure mode was identical. That is the lesson. Tooling got better. The missing piece was still a person who reads the findings and acts on them before launch.
The Lovable Security Checklist
These are the Lovable-specific checks. For the general launch list, including HTTPS, headers, email DNS and backups, use our 14-point vibe-coded app launch checklist.
1. Row-level security is on, and the policies are yours
In Lovable, open More, then Database, then Manage, then Policies. Every table that holds user data should show row-level security enabled with policies that name the owning user. Then go to the Supabase dashboard and read the SQL of each policy. A policy whose condition is true on a table of private data is a hole with a label on it. Supabase’s row-level security guide shows the patterns. Test by signing in as two different users and trying to read each other’s rows through the app.
2. No secret key in the client bundle
Supabase has two kinds of key. The publishable key (sb_publishable_, or the older anon key starting with eyJ) is fine in a browser. The secret key (sb_secret_, or the older service_role key) bypasses every policy and must never leave the server. Open your published app, view the page source and the JavaScript it loads, and search for service_role, sb_secret and any long token. Supabase now rejects secret keys sent from browsers, but treat that as a safety net, not permission. If a secret key was ever in the client, rotate it.
3. Secrets live in Secrets, and nobody shares a Supabase project
Every third-party key should be in Lovable’s Secrets view or your Supabase edge function secrets, never in a source file. One quiet gotcha from Lovable’s own documentation: two Lovable projects connected to the same Supabase project overwrite each other’s secrets. One app, one Supabase project.
4. Stripe is in the right mode, with the right key
The Stripe integration stores your key server-side, which is good. Three things to check. First, the preview has no separate test environment, so a live key in preview takes real payments. Second, use a restricted key with only the permissions the app needs, not your full secret key. Third, if you ever disconnect Stripe, the key stays in your Supabase secrets and deployed functions keep charging customers until you delete it. Also note that anyone with edit access to the project can connect or disconnect Stripe, which makes the next item matter.
5. You know who has edit access
Workspace owners and admins manage the GitHub and Supabase connections; editors can publish, unpublish, switch branches and connect Stripe. List everyone with access to the workspace, the GitHub repository, the Supabase organisation and the Stripe account. Remove the freelancer from March. Turn on two-factor authentication on all four.
6. The repository is yours and private
Connecting GitHub creates a new private repository in the account you choose, with two-way sync. Check it is in your account or organisation, not a contractor’s, and that it is still private. Turn on GitHub secret scanning. The repository is also your exit: it keeps its full history if you disconnect, and you can clone it and run the app anywhere.
7. The database has backups you have tested
Lovable’s documentation does not cover backups, because the database is Supabase’s. On Supabase, daily backups come with the Pro plan and above, seven days of retention on Pro. The free plan has no automatic backups at all. If your app has paying users, you are on a paid Supabase plan with backups on, and you have restored one to a scratch project to prove it works.
8. Your domain and email are set up outside Lovable’s defaults
A connected domain needs an A record to Lovable and a _lovable TXT record. If you bought the domain through Lovable, your MX and other records live in workspace settings, and switching to custom nameservers takes the site and email offline until you recreate them. Either way, SPF, DKIM and DMARC are yours to add; Lovable does not send your transactional email. Google’s sender guidelines are the standard to meet.
9. You have run the Deep scan and read it
The Quick scan is automatic. The Deep scan, which reads your code for logic and access-control problems, is not. Run it from the Security view before launch and after any significant change, and read every Critical finding rather than clicking “Try to fix all” and moving on. Consider turning on the workspace setting that blocks publishing with open critical issues; new Enterprise workspaces get it by default, everyone else has to opt in.
10. You know how you would leave
Not because you should, but because the option changes how you negotiate with every vendor. On paid plans you can download the codebase directly, and the GitHub repository runs outside Lovable with a standard toolchain. Your data is in a Supabase project you own. Knowing that, you can stay on Lovable for the right reasons.
When To Bring In a Lovable Developer or Agency
Most founders can run the ten checks above in an afternoon with this article open. The ones that genuinely need an engineer are 1, 2 and 9: reading policies, reading a built bundle, and interpreting a Deep scan report. If your app holds other people’s data or takes payments and you cannot personally verify those three, that is the moment to bring someone in.
What a good Lovable agency or expert does: reads what you built before touching it, reviews and fixes the database policies with you watching, checks the keys and the Stripe flow, writes down every change in the repository you own, and shows you how to keep it that way. Then, if you want someone on the hook for the code going forward, that is the fractional CTO role, which for most early companies costs between $5,000 and $12,000 a month and includes reading every change before it ships, the review loop we describe in our piece on AI code review for vibe-coded apps.
What a good agency does not do: insist on rebuilding your app in a different stack before they have read it, take ownership of your repository or Supabase project, or quote you for “security” without naming the specific checks they will run.
We review and harden Lovable apps for founders who are about to launch or have just launched. If that is you, tell us about your app and we will tell you honestly which of the ten you can do yourself.
The Honest Summary
Is Lovable secure? The platform, yes, within the limits any hosted builder has. The apps built on it are exactly as secure as their database rules, and the two public incidents that gave Lovable its reputation were both apps whose rules were never set. Lovable’s scanner now catches the obvious cases, and Lovable’s documentation is clear that the rest is yours.
That is not a reason to avoid Lovable. It is a reason to treat the publish button as the start of a checklist rather than the end of one. For the broader picture of where AI-built apps actually fail, read our hub on vibe coding security.
Is Lovable Secure? FAQs
Is Lovable secure? Lovable’s own platform is reasonably protected: secrets are stored server-side, custom domains get TLS automatically, and a security scan runs every time you publish. What Lovable does not and cannot secure for you is your app’s data model: the database access rules, the keys your app uses, who can access the repository and the Stripe account. Those are yours, and that is where every documented Lovable security incident has happened.
What was the Lovable security breach in 2025? It was not a breach of Lovable’s own systems. CVE-2025-48757, published on 29 May 2025, describes Lovable-generated apps whose Supabase databases had missing or inadequate row-level security, which let anyone with the public key read or write other users’ data. The researcher’s scan found 303 exposed endpoints across 170 of 1,645 apps analysed. Lovable disputes the CVE on the grounds that each customer is responsible for protecting their own app’s data.
Does Lovable’s security scan make my app safe? It catches the most common mistakes: tables without row-level security, rules that let everyone through, known vulnerable dependencies, an exposed MCP server. Lovable’s own documentation says the scans do not replace a thorough security review, and the February 2026 case reported by The Register was an app that had the scan available and did not act on it. Treat the scan as a smoke alarm, not a fire inspection.
Can a Lovable app be hacked? Any app can. The specific ways Lovable apps have been compromised in the public record are the same every time: database rules left off or too loose, so an attacker reads or writes data through the public API with no exploit required. Fix the rules, keep secret keys out of the browser, and the most common attack simply stops working.
When should I hire a Lovable developer or agency? When your app holds other people’s data or money and you cannot personally verify the database policies, the key handling and the payment flow. A good Lovable agency reviews and hardens what you built, writes down what they changed, and leaves you with a repository you still own. Be wary of anyone who wants to rebuild it from scratch before they have read it.
Have a product idea to talk through?
We'll show you how we'd approach it — no pressure, just a real conversation.
Book a Discovery Call