Supabase
Security FAQ

How secure is Supabase?

Get instant answers about your app's security.

Short Answer

Supabase is secure enough for production *only after* you close the specific gaps that have already been exploited in the wild. Most Supabase Security Issues: Missing RLS is the headline incident — apps built with Supabase and no security review have demonstrably shipped with critical data exposure.

Detailed Answer

What Supabase gives you out of the box

Supabase provides a powerful PostgreSQL database with built-in authentication and real-time subscriptions. However, its security model relies on Row Level Security (RLS) policies that you must configure explicitly for each table.

What Supabase leaves to you

By design, Supabase exposes your project URL and anon key in client-side code. This is intentional and secure IF you have proper RLS policies. Without RLS, anyone with these public credentials can access your entire database.

The incident that defines "how secure is Supabase"

The majority of Supabase security incidents stem from tables without Row Level Security enabled. When RLS is disabled, anyone with your anon key can read, modify, or delete all data in that table.

The security gaps that actually appear in Supabase apps

  1. **Tables Without RLS** — Any table without RLS enabled is fully exposed via the public API.

2. **Service Role Key Exposure** — The service_role key bypasses all RLS and grants admin access.

3. **Permissive RLS Policies** — Policies that allow more access than intended (e.g., any authenticated user).

Platform security is strong where Supabase controls the stack. The gaps above all sit in the application layer — where Supabase's guarantees end and yours begin.

Verdict

Supabase can be run securely. Treat "is Supabase secure" as a deployment-time question, not a platform question: run a security scan, verify Row Level Security (RLS) policies are configured, and close the specific gaps above. Platforms with better defaults (e.g. enforced Row Level Security) would reduce the work — but none of them make scanning unnecessary.

Security Research & Statistics

10.3%

of Lovable applications (170 out of 1,645) had exposed user data in the CVE-2025-48757 incident

Source: CVE-2025-48757 security advisory

91%

of data breaches involve databases with misconfigured access controls

Source: Verizon Data Breach Investigations Report

4.45 million USD

average cost of a data breach in 2023

Source: IBM Cost of a Data Breach Report 2023

Expert Perspectives

Vibe coding your way to a production codebase is clearly risky. Most of the work we do as software engineers involves evolving existing systems, where the quality and understandability of the underlying code is crucial.

Simon WillisonSecurity Researcher, Django Co-creator

The problem with AI-generated code isn't that it doesn't work - it's that it works just well enough to ship, but contains subtle security flaws that are hard to spot.

Security Research CommunityCollective wisdom from security researchers

Check Your Supabase App's Security

VAS scans for all the security issues mentioned above. Get a comprehensive security report in minutes.

Get Starter Scan

More Questions About This Topic

Is Supabase secure enough for production?

Yes, with a specific caveat: the misconfigurations behind Most Supabase Security Issues: Missing RLS have to be closed first. A Supabase app that has never been scanned is not production-ready regardless of how the platform markets itself. Post-scan and post-fix, Supabase apps run in production at scale.

What percentage of Supabase apps have security issues before review?

Based on the breaches we track and community reporting, the majority of Supabase apps deployed without a pre-launch scan have at least one critical or high-severity finding. The #1 recurring finding is "Tables Without RLS". This is not unique to Supabase — it's the base rate for AI-assisted development — but it means the default state of a shipped Supabase app is "unverified."

Does Supabase itself have security certifications (SOC 2, ISO 27001)?

Platform certifications from Supabase apply to the Supabase infrastructure — not to your app built with Supabase. Even if Supabase is SOC 2-compliant, your app can still leak data through misconfigured Row Level Security (RLS) policies, exposed secrets, or missing access checks. Compliance for your app is a separate effort; the platform's certifications are necessary but never sufficient.