Skip to content
VibeSafeDaily

Storage

Your self-hosted Supabase lets anyone overwrite Storage files through signed upload routes

Cataloged November 1, 2026 · Supabase · Cursor · Replit · Bolt

Symptom

Nothing looks wrong. Uploads work, your Storage policies look right, and only signed-in users can add files from the app. But if you run Supabase yourself with the official Docker setup (on a VPS, Coolify, Dokploy, or a home server) and have not updated since mid-October 2026, your Storage server can accept uploads from someone with no account and no key. Supabase's advisory GHSA-8rrf-w776-x75g (Critical, 9.1) says an attacker who knows a bucket and file name can create a new file or overwrite an existing one in public or private buckets, and a zero-byte upload can empty an existing file. Avatars, invoices, and documents can be replaced without any error showing up in your app.

Root cause

Signed resumable uploads (the TUS upload routes) are checked with a signed-upload token instead of the caller's login, so Storage handles them on a privileged database connection. According to Supabase's advisory, in storage-api 1.80.1 and earlier the token check only ran when the raw request URL started with a fixed path prefix. The router and the check read some request targets differently: percent-encoded paths and absolute-form request targets still reached the signed-upload route but did not match the prefix, so no x-signature token was checked. The remaining permission check ran on the privileged connection, so row-level security policies on storage.objects did not stop the upload. Storage 1.80.2 fixes it by identifying signed uploads from the matched route instead of the raw URL and requiring a valid token for that exact bucket and object. The official self-hosted Docker setup pinned supabase/storage-api v1.74.0 until self-hosted release 0.8.3 on October 16, 2026, which moved it to v1.81.0. That same release also fixes a Realtime issue (GHSA-9vjf-j9f7-j42c) where a client using only the anon key could inject forged messages, such as fake Postgres Changes events, into other subscribers on public channels. Supabase's changelog warns that the new Storage version runs one-way database migrations, so you should back up the database before updating. This card is about self-hosted installs. Projects on supabase.com do not run their own copy of the Storage server.

Before and after

The before line is the Storage image the official self-hosted setup pinned until release 0.8.3. The after line is the patched image from 0.8.3. Back up the database, then pull and recreate the containers.

Before

image: supabase/storage-api:v1.74.0

After

image: supabase/storage-api:v1.81.0

Fix prompt

In this project only. Do not scan or test anyone else's server.

1. Tell me whether this project uses Supabase hosted on supabase.com (a project URL ending in .supabase.co) or a self-hosted Supabase that runs from a docker-compose.yml (the official supabase/docker setup, Coolify, Dokploy, or similar). If it only uses supabase.com, say so and stop: this fix is for self-hosted installs.

2. If it is self-hosted, find the docker-compose.yml that runs Supabase and report the exact image tags for supabase/storage-api and supabase/realtime. Do not print any values from .env.

3. If storage-api is v1.80.1 or older, or realtime is older than v2.143.3, plan an update to the current official self-hosted release (0.8.3 or later from https://github.com/supabase/supabase/tree/master/docker). Read its CHANGELOG.md first and list every "requires ... update" note that applies to the files this project has (for example volumes/api/envoy/lds.template.yaml or volumes/api/kong.yml).

4. Before changing anything, give me the exact command to back up the database (for example pg_dump from the db container to a file outside the container), because the new Storage version runs one-way migrations and rolling back to the old Storage image afterwards makes all uploads fail. Wait for me to confirm the backup worked.

5. Then update the image tags and the config files the changelog lists, keeping this project's own custom settings. Show me the diff.

6. Give me the commands to apply it: docker compose pull, then docker compose down, then docker compose up -d. After it is running, show me docker compose ps and confirm storage-api is v1.81.0 or later and realtime is v2.143.3 or later.

7. Check that a normal upload and download from the app still work while signed in.

8. Tell me how to look at the files in my own Storage buckets for unexpected zero-byte files or files updated at times I did not expect, using a SQL query on storage.objects in my own database that lists name, bucket_id, updated_at, and metadata->>'size', newest first.

Do not print keys, tokens, passwords, or environment variable values. Do not edit unrelated files.

Paste this into the coding tool that has your own project open.

2-minute self-check

These steps are for an app you own. Do not run them against someone else's project.

  1. On the server that runs your own self-hosted Supabase, run docker compose images (or docker ps) and find supabase/storage-api. v1.80.1 or older is affected. v1.80.2 or later, including v1.81.0 from self-hosted 0.8.3, has the fix.
  2. In the same list, check supabase/realtime. If it is older than v2.143.3, the version in self-hosted 0.8.3 that carries the forged-broadcast fix, update it too.
  3. In your own database's SQL editor, list the newest rows in storage.objects by updated_at and look for files whose size in metadata is 0 or whose update time you do not recognize.
  4. If your app only uses a project URL ending in .supabase.co, this card does not apply to you, because you do not run your own Storage server.

Common questions

My Storage policies only allow signed-in users to upload. Doesn't that stop this?

Not on affected versions. Signed resumable uploads run on a privileged database connection because they are authorized by a signed-upload token, not by the user's login. Supabase's advisory says the token check could be skipped with specially formatted request paths, and the remaining check ran on that privileged connection, so row-level security policies did not prevent the upload.

My app uses supabase.com, not my own server. Do I need to do anything?

This card is about self-hosted installs, where you run the supabase/storage-api container yourself and choose its version. On supabase.com you do not run or update the Storage server.

Can I roll back if the update breaks something?

Not safely for Storage. Supabase's self-hosted changelog says the new Storage version adds one-way database migrations, and rolling back to v1.74.0 afterwards makes all uploads fail. Back up the database first.

Sources

Same symptom

Same platform