Rules

Supabase anon key can list every table in the public schema

SR-SUPA-004 · Medium

The Supabase Data API used to answer a request to /rest/v1/ with an OpenAPI description of every table and view the anon key could reach. That list tells an attacker exactly which tables to try. Since April 2026 hosted Supabase projects refuse this listing to the anon key, but a self-hosted or older setup that still returns it is showing you a map of what is exposed. The fix is to enable Row Level Security on every table in the public schema, revoke anon and authenticated access from tables the browser never needs, or move those tables to a schema the Data API does not serve.

The fix

Before · Terminal
$ curl https://abcd1234.supabase.co/rest/v1/ -H "apikey: $ANON_KEY"
{"paths": {"/profiles": {...}, "/orders": {...}, "/admin_notes": {...}}}
After · supabase/migrations/0003_lock_admin_notes.sql
alter table public.admin_notes enable row level security;

revoke all on table public.admin_notes from anon, authenticated;

How ShipReady finds it

With --supabase-url and --anon-key, ShipReady requests /rest/v1/ with the anon key and reports the tables when the response is a schema that lists them. It only reads. Findings carry rule ID SR-SUPA-004.

Run the check

Terminal
npx @shipmate-agency/shipready --supabase-url https://<ref>.supabase.co --anon-key <anon-key>

The GitHub Action deeflect/shipready@v0.2.0 scans the repo only, so run this check against your deployed site.

Want a person to check every area and send the fixes as pull requests? Launch Lockdown, $950 once.