Supabase's October 30 change: what it fixes, and what it doesn't
On 30 October 2026, Supabase changed how new tables are exposed in existing projects. It's a good security change, but it's easy to misread as "my database is now safe". It isn't: tables you already had kept exactly the access they had before.
What changed
Before the change, every table created in the public schema was automatically granted to the anon, authenticated and service_role roles, so the Data API (REST and GraphQL, which supabase-js uses) could read and write it straight away. Row Level Security was the only thing standing in the way.
Since 30 October, new tables in public don't get those grants automatically. You have to opt each one in with a Postgres GRANT before your app can reach it through the Data API. New projects have worked this way since May, and the Supabase CLI switched for local development in June.
What didn't change
- Existing tables keep their grants. If a table was readable by anyone before 30 October, it still is.
- Row Level Security works the same. A table with RLS off, or with a
using (true)policy, is just as open as before. - Direct database connections (an ORM or server using a connection string) aren't affected.
So the change stops new accidents. It doesn't fix the leaks that are already out there.
What breaks: error 42501 on new tables
If your app (or your AI tool) creates a new table now, it isn't reachable from the browser until you grant access. supabase-js returns 42501 permission denied for table. The full fix is in our 42501 guide.
The fix is to grant only what the app needs, and to switch RLS on at the same time:
alter table public.notes enable row level security;
grant select, insert, update, delete on public.notes to authenticated;
create policy "Users manage their own notes"
on public.notes for all
using (auth.uid() = user_id)
with check (auth.uid() = user_id);
Only grant to anon (logged-out visitors) if the table is meant to be public, like a product list, and then usually just select.
Watch out for AI tools "fixing" the error the wrong way. If you paste a permission error into Lovable, Bolt or Cursor, check it doesn't respond by granting everything to anon or turning RLS off. That would recreate exactly the problem this change is meant to prevent.
Other errors you may hit on a new table:
- Sign-up fails with Database error saving new user: your profile trigger writes to a table it can't reach. See the sign-up error fix.
- The query works but returns
[]: grants are fine, but no RLS policy lets the user read the rows. See why Supabase returns an empty array. - new row violates row-level security policy: there's no insert policy. See the insert fix.
What to check now
Because existing tables kept their access, the change didn't close anything that was already open. Audit them: In the SQL editor:
1. Which tables have RLS off:
select tablename, rowsecurity
from pg_tables
where schemaname = 'public';
2. What logged-out visitors are allowed to do:
select table_name, string_agg(privilege_type, ', ') as privileges
from information_schema.role_table_grants
where grantee = 'anon' and table_schema = 'public'
group by table_name;
Any table that appears in the second list with RLS off in the first is readable (and often writable) by anyone who has your anon key, which is in your app's JavaScript.
3. Policies that let everyone through: look for using (true) in Authentication → Policies.
Not sure where to start? Paste your app's URL into the scan box at the top of this page. LeakPatrol's free scan checks your live app from the outside for leaked keys, public files and missing protections in about a minute, without logging in. The full report adds a Supabase check that reads your table, policy, view and storage settings from a query you run yourself, so we never need access to your project.
Check your app in a minute
Free, read-only, no sign-up. Every problem comes with a plain-English fix and a prompt for your AI tool.
Get the 10-point checklist
Every check we run on AI-built apps, with how to do each one yourself. Straight to your inbox.
Plus the odd security tip. Unsubscribe any time.
Questions
What changed in Supabase on October 30, 2026?
New tables created in the public schema of existing projects are no longer automatically granted to the anon, authenticated and service_role roles, so they are not reachable through the Data API until you add an explicit GRANT.
Does the Supabase October 30 change secure my existing tables?
No. Existing tables keep their current grants and Row Level Security behaves the same, so tables that are open today stay open. You need to check RLS and grants on existing tables yourself.
Why does my new Supabase table give a permission error?
After the change, new public tables need an explicit grant, for example grant select, insert, update, delete on public.my_table to authenticated, together with Row Level Security policies.
More guides
- Supabase RLS policy generator (free)
- Is this API key safe in my frontend? Free key checker
- Security scan MCP server for Claude Code, Cursor and other AI agents
- Supabase "42501 permission denied for table": the safe fix (not GRANT ALL)
- Supabase "new row violates row-level security policy": 5 causes and the safe fix
- Supabase service_role key exposed? What to do in the next hour
- Supabase select returns an empty array but the data is there: the RLS fix
- Supabase "Database error saving new user": find the cause and fix it safely
- Supabase Storage upload: "new row violates row-level security policy" fixed
- Supabase "infinite recursion detected in policy for relation" fixed
- Supabase Edge Function "blocked by CORS policy" fixed
- Supabase "Forbidden use of secret API key in browser" (401) fixed
- Supabase "Legacy API keys are disabled" or "Invalid API key": what it means and the fix
- Supabase login or magic link redirects to localhost:3000 (fixed)
- Is your Supabase storage bucket public? What anyone can see, and the fix
- Where to put your OpenAI API key in a Lovable app (so nobody can copy it)
- Supabase "Function Search Path Mutable" warning: what it means and the one-line fix
- Supabase "email rate limit exceeded" fixed (and "you can only request this after 60 seconds")
- Lovable data exposure study: is your app one of the 24,664?
- Lovable security check: is your Lovable app safe?
- Bolt.new security check: is your Bolt app safe?
- Launch checklist for apps built with Lovable, Bolt and Cursor
- Supabase security check: is your anon key safe? (RLS checker)
- How to check if your API key is exposed on your website
- Are VITE_ env variables secret? How to hide API keys
- Stop users giving themselves your paid plan (Supabase)