- CVE-2025-48757 describes insufficient Row Level Security in projects generated by the Lovable app builder. The vendor disputes it.
- Generated front ends queried the database directly with a public key and relied entirely on row rules for privacy.
- A November 2026 study found records with email addresses returned on 7,403 of 24,664 sampled AI-built sites.
What happened
In May 2025, CVE-2025-48757 was published for apps generated by the AI app builder Lovable. The record describes an insufficient database Row Level Security policy in Lovable through April 15, 2025 that "allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites" 1. The same record notes that the supplier disputes it, on the grounds that each customer accepts responsibility for protecting the data of their own application 1.
The researcher's write-up explains the pattern. Generated front ends made direct REST calls to a Supabase database using the public, unprivileged anon key, and relied exclusively on Row Level Security to keep data private. Where a table's rules were missing or too loose, a modified request could return every row. The write-up lists exposed personal data, third-party API keys and payment records, including the ability to change a payment status 2.
The pattern did not go away. On November 3, 2026, Sifted reported research by the German security firm Crissy Field, conducted with Handelsblatt, on apps built with the same builder 3. Of 24,664 sites that sent database records on page load, additional read-only requests returned tables containing email addresses on 7,403 4. The researchers caution that this is not a confirmed leak rate, and the builder's security lead noted that the platform scans apps before publishing 34.
Why it happened
This architecture is legitimate. Supabase is designed so that a browser can query the database with a public key, as long as every table has row rules that match the business logic. The failure is that the person building the app often does not know the rules exist, and the app works perfectly in a demo without them. Nothing in the happy path tells you the lock is missing.
What it cost or risked
The researcher scored the issue 8.26 on CVSS v3.1, with high confidentiality impact 2. The exposure classes named in the public record are the ones regulators care most about: personal data, credentials for other services and financial records 23. Because every affected app belonged to a different builder, there was no single owner to fix them all.
What a verification-first team does differently
- Checks every table, not every page. It lists each table the public key can reach and confirms a row rule exists for each read and write.
- Tests as a stranger. It sends the same requests an attacker would, without a session, and confirms nothing comes back.
- Keeps secrets out of the database the browser can see. Third-party keys live server side.
- Repeats the check after every regeneration, because an AI builder can rewrite a schema in one prompt.
How our services map
- Code Verification. Table-by-table review of data rules and unauthenticated testing of AI-built apps before they go live.
- Governance and security. Rules for which AI app builders are approved, and for what data.
- Secure AI Training for teams. Training for builders on row rules, public keys and where secrets belong.
Swallowtail Systems™ did not work on this incident or study. This case is our reading of the public record, and every figure belongs to the organization cited. The service mapping shows where our work applies to the same risk, not work we performed here. Read how we choose and source cases.