Supabase fixes
35 guides include a Supabase section. This page only lists those sections. It is not a copy of the full catalog, and a sponsor does not change which guides appear or their order.
The Supabase publishable key is meant to ship in the browser, so row level security is what limits the rows it can touch. How to check if RLS is enabled on every Supabase table starts with that check, and Secret keys shipped in the frontend covers the secret key, which bypasses row level security and belongs on the server.
Grants are the other half. Supabase's changelog names October 30, 2026 as the day the new default is enforced on existing projects, and from then on a table created in public needs an explicit grant before the Data API can reach it. The Oct 30 check page lists what each Data API role is missing, and How do I add Supabase Data API grants to my migrations? keeps the grant next to the create table statement.
Functions, views, and Storage each have a guide of their own. Can anyone call your Supabase functions? says the October 30 change does not close the RPC endpoint for functions, Do Supabase views bypass RLS? covers security_invoker, and Open storage buckets covers file policies. Reported Supabase advisories and platform changes are on Supabase incidents.
- criticalUpdated Oct 18, 2026
Auth checked only in the UI in Supabase
Prefer the user's JWT and RLS for ordinary reads and writes, so a forgotten server check still hits the database policy. Use the secret key only for work that has already authorized the caller.
- criticalUpdated Oct 18, 2026
Auth in middleware that skips API routes in Supabase
Inside the Route Handler or Server Action, create the Supabase client from that request's cookies so the query runs as the user and row level security applies. Supabase's Next.js server-side guide says SSR uses cookie-based session storage through @supabase/ssr , and that you create the server client per request because the cookies come from the request.
- criticalUpdated Nov 20, 2026
Exposed .env files and debug endpoints in Supabase
The project URL and publishable key are not secret. The secret key, database password, and service role JWT are.
- criticalUpdated Oct 13, 2026
Firebase rules left open in Supabase
This bug is the Firestore version of missing RLS. If you use Supabase instead, follow tables without row level security.
- criticalUpdated Oct 25, 2026
How to check if RLS is enabled on every Supabase table in Supabase
Enable RLS, then add a policy that matches the real rule, usually "a signed-in user may access their own rows."
- criticalUpdated Oct 13, 2026
IDOR: reading or changing someone else's data in Supabase
- criticalUpdated Nov 15, 2026
Is my Bolt app secure? What to check before you publish in Supabase
Enable RLS and policies for the roles the client uses. Do not put the secret key in a VITE_ variable.
- criticalUpdated Oct 14, 2026
Keys committed to GitHub in Supabase
Create a new secret key, switch the server to it, then revoke the leaked key and the legacy service_role key if that was what got committed. Supabase's rotation note says to fix the cause before you rotate, and to confirm every component uses the new key before you retire the old one.
- criticalUpdated Oct 23, 2026
Lovable app security: RLS, keys, and auth in Supabase
Enable RLS and add policies for anon and authenticated . Supabase's API key guide says policies never apply to a secret key, because service_role has BYPASSRLS .
- criticalUpdated Oct 23, 2026
No cap on LLM API spend in Supabase
A usage table with RLS so users can read their own count and cannot update it is a reasonable store. The server, using a checked session, writes the count.
- criticalUpdated Oct 19, 2026
Open storage buckets in Supabase
Make the bucket private. Add policies so authenticated users can only read and write a prefix that includes their user id.
- criticalUpdated Oct 23, 2026
Secret keys shipped in the frontend in Supabase
Keep two variables, matching Supabase's own example:
- criticalUpdated Oct 29, 2026
Server Actions with no auth check in Supabase
Inside the action, create the client from the user's cookies so RLS runs, or use the secret key only after the session check and add user_id to the query yourself. Do not create a module-level secret client and call it from every action by habit.
- criticalUpdated Oct 18, 2026
Session tokens stored in localStorage in Supabase
Use the cookie helpers in Supabase's Next.js server-side auth guide when the server needs to see the session. @supabase/ssr stores the access token and the refresh token in cookies.
- criticalUpdated Oct 13, 2026
The client sets the price, role, or plan in Supabase
A policy with check (auth.uid() = id) still allows the user to set other columns on their own row. Revoke column updates they should not have, or use a trigger that rejects changes to plan and role .
- criticalUpdated Oct 13, 2026
Unverified Stripe webhooks in Supabase
If the handler writes "this user is paid" with the Supabase secret key, that write bypasses RLS, which is fine only after the signature check has passed. Do not let the browser write plan = 'pro' itself.
- highUpdated Nov 2, 2026
Can anyone call your Supabase functions? in Supabase
Fix each function on its own. The lint docs give three options, and say to handle anon and authenticated together because the two lints are paired.
- highUpdated Oct 13, 2026
CORS wide open in Supabase
Keep using RLS. Do not put the secret key in the browser to "avoid CORS." If you added custom headers on a Next.js proxy in front of Supabase, apply the allowlist to that proxy, not a wildcard.
- highUpdated Oct 18, 2026
Cross-site scripting (XSS) in Supabase
The database can store the characters. That is fine.
- highUpdated Oct 23, 2026
Check views for RLS bypass in Supabase
Fix each view on its own. Switch views that should respect row level security to security_invoker , and take materialized views with private rows off the API.
- highUpdated Oct 13, 2026
No rate limiting on auth or paid API routes in Supabase
Supabase Auth has its own rate limits on auth endpoints. Those limits are not a promise about routes you wrote yourself.
- highUpdated Nov 13, 2026
Prompt injection in LLM features in Supabase
If a retrieval step loads rows for the prompt, load them with the user's session and RLS, not with the secret key and a filter the model chose. Otherwise the model is asking your admin client for whatever table it names.
- highUpdated Oct 28, 2026
Public env vars, the Supabase anon key, and row level security in Supabase
Turn on row level security and write policies for the roles the browser uses, anon and authenticated . The API keys guide says to write policies for those roles, and that policies do not apply to a secret key.
- highUpdated Oct 23, 2026
Security checklist for AI client work in Supabase
Start the project in the client's organization, or transfer it there before launch. Supabase's project transfer guide says you start a transfer from the project's general settings.
- highUpdated Oct 13, 2026
SQL injection in Supabase
Keep filters in the client methods that take a value separately from the column name. Do not pass user text as a fragment of an .or() filter string.
- highUpdated Nov 18, 2026
Supabase permission denied for table (42501) on a new table: what changed on October 30, 2026? in Supabase
Put the grant, row level security, and the policies in the same migration, for every new table the Data API should reach. For each table the missing-grants query lists that the app needs, replace your_table and run this.
- highUpdated Nov 12, 2026
New Supabase tables need an explicit grant in Supabase
Put the grant, row level security, and the policies in the same migration. The changelog says to treat those three steps as a unit.
- highUpdated Oct 13, 2026
Unsafe file uploads in Supabase
Use a private bucket and storage policies that mirror table RLS: a user can upload and read objects under their own prefix. Reject other prefixes in the policy.
- highUpdated Oct 20, 2026
v0 apps, public env vars, and Supabase auth in Supabase
Enable RLS and policies before you rely on the publishable key. Do not use the secret key from a v0 client component.
- highUpdated Oct 18, 2026
Weak password reset in Supabase
Use Supabase Auth's reset email from the client or server, with a redirectTo URL on an allowlist you configured in the Auth settings. The redirect page should exchange the token through the Supabase client session flow, then call the password update on that session.
- highUpdated Nov 18, 2026
Who can read my Replit secrets? in Supabase
If the repl uses Supabase, enable RLS and keep the secret key in an environment variable the browser bundle does not contain. Supabase says the publishable key is the client key only when RLS and grants are on.
- mediumUpdated Oct 29, 2026
Check your coding agent's security work in Supabase
Supabase's advisors run from Security Advisor in the dashboard. Open it after the agent finishes and compare its list with the agent's.
- mediumUpdated Nov 2, 2026
How do I add Supabase Data API grants to my migrations? in Supabase
For a new table that already exists without its grants, add a new migration with the missing grants instead of editing one that has already run. Existing tables keep their grants, per the changelog, so only tables created after the change need this.
- mediumUpdated Oct 14, 2026
Missing privacy policy and terms in Supabase
If Auth stores emails and Postgres stores user rows, say that Supabase is the processor for that data. A delete account action should delete the Auth user and the rows, or document what you retain and why.
- mediumUpdated Oct 14, 2026
Outdated dependencies in Supabase
The Supabase client libraries are normal dependencies. Update them the same way.
Recently updated
Guides
Platform fixes
Incidents
- Lovable-generated sites with missing RLS let unauthenticated users read or write tables
- Did Claude Code commit my secrets? How to check
- Supabase Storage accepted a signed JWT with role none and bypassed RLS
- A Supabase Storage presigned PUT URL for one object could be used to read objects from other buckets
How an entry gets onto a platform page is described in the editorial standards.