Lovable Security: Sensitive Data Risks in AI Apps11 min read2,187 words

Lovable Security: Sensitive Data Risks in AI Apps

An analysis of 159,041 Lovable projects found sensitive records accessible without login. Learn what the findings mean and how to reduce app security risks.

Lovable securityAI app securitySupabase securitydatabase access controlsensitive data exposure
Lovable Security: Sensitive Data Risks in AI Apps

Lovable Security: Sensitive Data Risks in AI Apps

Lovable Apps and the Sensitive Data Security Gap

Building a web app with an AI platform can take hours instead of weeks. But if that app touches customer details, payments, or internal documents, speed doesn't answer the real question: who can access the data behind it?

An analysis of 159,041 Lovable projects found multiple cases where database content was accessible without a login. The researchers reported exposed personal and confidential information - ranging from email addresses and chat messages to identity document details. That's serious, but it's also worth reading carefully: the study doesn't prove that 30% of all Lovable apps leaked data, or that anyone actually misused the exposed records.

This article breaks down what the analysis found, what its numbers do and don't mean, why AI-built apps can repeat access-control mistakes, and what builders should check before using real customer data. The takeaway is straightforward: an easy app-building workflow doesn't automatically produce an application that's safe to run.

What did the Lovable security analysis find

The researchers examined Lovable projects collected from the Common Crawl web archive between December 2025 and September 2026. They identified 159,041 projects, including 34,545 that used Supabase, a database service commonly integrated into web applications.

Among those Supabase-connected sites, 24,664 sent database records when a page first loaded, without requiring a login or another user action. This behavior is not automatically a vulnerability. A site might intentionally show public information - like a list of events or products. The key question is whether the database also allowed access to records that should be private.

To dig further, the researchers made additional read-only requests using the same API key available to the site. They reported records containing email addresses in 10,560 tables across 7,403 of the 24,664 sites they examined more closely. Some of those records included information the researchers considered especially sensitive.

The exposed data was not limited to email addresses

Their reported examples included a German lifestyle forum with more than 80,000 profiles containing full names, email addresses, dates of birth, and gender information. They also found more than 200,000 chat messages accessible.

Other cases involved ticket and food-sale records, including contact details, postal addresses, payment information, and ticket codes. The researchers also described access to internal email summaries related to tenants and business partners, along with contracts, invoices, personal photo albums, support messages, and newsletter records.

One especially concerning example involved more than 1,000 records containing identity document details, including passport numbers, expiry dates, and nationalities. The researchers noted that this kind of information can increase the risk of identity theft, and they said they could not determine whether the exposed data was ever misused.

This is an application security issue, not proof of a platform breach

The analysis focused on data accessible through individual applications. It does not show that Lovable's own internal systems were breached.

In practice, the distinction matters. In a generated app, the platform helps produce the application - but the application's data model and access rules determine what visitors can retrieve. So it would be wrong to treat the findings as proof that every Lovable project is vulnerable. And it would also be wrong to frame it as a problem unique to one tool: similar access-control failures can happen with conventional development stacks.

What do the exposure figures actually mean

The headline number needs context. The researchers found email-containing records in tables across 7,403 of the 24,664 websites they examined more closely. That's about 30% of that subset - not 30% of all Lovable projects, all Supabase projects, or all applications built with Lovable.

This distinction matters because the study used a specific sample and a specific detection method. Common Crawl is an archive of pages found on the open web, not a random slice of every Lovable app. If an app wasn't crawled, wasn't publicly discoverable, or used a different database service, it falls outside the analysis.

Email addresses are a signal, not a verdict

The researchers used email addresses as a proxy for personal information. That approach can be wrong in both directions. Some records with an email address may be public business contacts or test data. At the same time, some personal records may not include an email address at all - private messages, identity details, or certain internal documents, for example.

Those limitations point in opposite directions, but the study doesn't quantify how much each effect changed the results. So the "30%" figure should be read as a finding about the examined subset and method - not as a confirmed data-leak rate for Lovable apps.

There are also limits in what the researchers pulled. They downloaded portions of datasets rather than every record, so the accessible datasets may have included additional material beyond what they counted. They also chose not to publish details that could make it easier for others to access the data.

What the findings do establish

Even with those caveats, the evidence supports a narrower - still serious - conclusion: some public-facing Lovable applications exposed records that weren't meant to be available without proper access controls. The examples suggest the potential impact can extend beyond harmless demo content.

Depending on the records, exposure could enable phishing, ticket fraud, or identity theft. But "could" isn't the same as proof. The research doesn't show who accessed the data before it was found, whether anyone used it maliciously, or whether every identified record belonged to a real person.

If you're building a business app, the useful response isn't to plug the study's percentage into your own risk estimate. Instead, verify your own database permissions - especially what an unauthenticated visitor and each user role can actually read.

Why can AI-built apps repeat security mistakes

The real risk isn't that AI writes code. It's that a working interface can look complete while the underlying authorization rules are still wrong or incomplete. If a page loads data successfully, it only proves the app can connect to a database - it doesn't prove the right people are the only ones who can retrieve each record.

This gap is easy to miss when the build process focuses on describing a product and making sure the generated screens work as expected. Access control is less visible. A test account might show that a user can view their own information without revealing whether another account (or no account at all) can view other records.

Repeated integrations can make mistakes easier to find

The researchers pointed out that database integrations often follow recurring patterns. If multiple apps expose similar interfaces or repeat similar permission mistakes, an attacker may be able to test for a category of weakness rather than investigating every app from scratch.

That doesn't mean every application using the same platform has the same flaw. Configuration, database structure, and app behavior vary. Still, repeated implementation patterns can make systematic checks more effective - and that raises the stakes for relying on obscurity or hoping no one finds an endpoint.

A key visible in browser code isn't, by itself, proof of a security failure. Some database platforms use public client keys by design. The important question is whether database policies restrict that key to the intended records and operations. Treating a public key like a password - or assuming a hidden UI somehow protects the database - doesn't work as an access-control strategy.

No-code and AI-assisted do not mean responsibility-free

Lovable markets building without requiring deep technical knowledge, but its terms put responsibility for applications and data handling on the customer. That creates a practical gap: people can produce a sophisticated app without necessarily having the experience to evaluate the authorization model underneath.

This gap exists in traditional development, too. Hand-written apps can ship with overly broad permissions, weak account separation, or an overlooked admin path. AI mostly changes how fast an app gets assembled - it doesn't remove the need to decide which data each user should access.

Automated checks can help find known problem patterns, but they can't replace a review of the application's real data flows and business rules. A clean scan doesn't prove one customer can't see another customer's records. You have to test the boundaries directly.

How should you secure a Lovable app before launch

Treat security review as a release requirement for any app that handles real personal, financial, or business information. The review doesn't have to take months, but it should test the data boundary - not just the visible screens.

1. Classify the data before connecting production records

Write down what the app stores and who should be able to view each type of information. Separate public content from account data, payment-related records, internal notes, and identity details. If a field isn't needed for the product, don't collect it. Less stored data means less damage if access control fails.

Use synthetic or low-risk data while you develop. Even if you only show the app to a small group, a demo environment populated with real customer information is still handling real customer information.

2. Define access rules for every table and role

For each database table, define the intended permissions for unauthenticated visitors, signed-in users, staff, and administrators. Start from no access and only grant what the product needs. With Supabase, that means checking row-level security policies and verifying that they apply to every table containing private data.

Test both reads and writes. If a user shouldn't view another person's records, they also shouldn't be able to change or delete them. If the app supports teams or organizations, test that tenant boundaries are enforced in the database - not just the interface.

3. Test with separate identities and no login

Use at least two normal accounts plus an unauthenticated session. Try to access each other's records, change identifiers, and attempt to reach data the interface doesn't normally show. Your test should answer specific questions: can a visitor read a private record? Can one customer retrieve another customer's information? Can an ordinary user access staff-only content?

Don't treat a successful login test as enough. Some authorization bugs only show up when a user is authenticated and then attempts to access records they don't own.

4. Review changes and get qualified help when the stakes justify it

Repeat the review after changes to database tables, authentication, integrations, or generated application logic. Permissions can creep into overly broad territory as a product grows - especially when a new feature introduces a field or workflow that wasn't in the original review.

If your app handles identity documents, payment information, health data, or large volumes of customer records, get someone qualified to assess the application security before launch. Automated checks can support that work, but a professional review should examine intended roles, data flows, and tenant separation. Keep a record of findings and verify fixes, rather than assuming a prompt or code change solved the problem.

Conclusion

The Lovable analysis points to a familiar failure mode in faster development environments: an app can look ready while its data permissions remain untested. The study doesn't prove a platform-wide breach or a representative leak rate, but its documented examples show why this risk deserves a real security review.

Before an AI-built application handles production data, test who can access each record, from which account, and through which interface. If you can't clearly explain those boundaries, the app isn't ready for that data yet.

Frequently Asked Questions

No. The researchers found email-containing records in tables across 7,403 of 24,664 sites examined more closely. The sample came from Common Crawl and was not representative of all Lovable applications. Email addresses are also an imperfect indicator, so the percentage is not a confirmed leak rate.
The report describes sensitive records accessible through individual applications built with Lovable. It does not establish that Lovable’s internal systems were breached. The findings point to application-level data access problems, which can occur on many platforms when database permissions do not match the data’s intended privacy.
No. Some client keys are designed to be public. Their presence does not automatically mean the database is exposed. What matters is whether database policies limit access to appropriate records and operations. A public key should never be treated as a substitute for authentication or authorization rules.
Review the database permissions for every table and user role, test unauthenticated access, and verify that separate users cannot retrieve one another’s records. Also minimize the data you collect and use synthetic records during development. For sensitive or high-impact data, arrange a qualified security review before launch.

Related articles