Skip to content
VibeSafeDaily

Storage

A Supabase Storage upload URL can read any bucket

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

Symptom

This applies when an app hands someone a SigV4 presigned PUT URL from Supabase Storage's S3-compatible endpoint. It applies to a self-hosted Supabase, the official Docker setup or a supabase/storage-api image, because that operator chooses the Storage version. Supabase is the platform. Cursor, Replit, and Bolt are on this card for the same reason they are on the earlier self-hosted Storage card in this catalog: a project started in those tools can run Storage itself. A project that only calls a hosted Supabase URL does not run that image. If this project does not issue an S3-protocol presigned upload URL, and it does not run storage-api, this card does not apply. GitHub Advisory GHSA-3m3f-pjv4-x2fp, "Supabase Storage: an upload URL can read any bucket", is on supabase/storage. It is rated High. itslenny published it on November 5, 2026. The advisory says there is no known CVE. The package is @supabase/storage-api (npm). Affected versions are <= 1.89.9. The patched version it names is 1.89.10. The advisory says: "A party you hand a SigV4 presigned PUT URL for one object can add one unsigned header and read any object the signing key can reach, in any bucket. The copy runs as the signer." It says: "Presigned uploads from an untrusted browser are a documented pattern in your product." It says a presigned PUT URL carries X-Amz-SignedHeaders=host and signs only that header. It says storage-api builds the canonical request from the names in that list, never from the headers that arrived, so an x-amz-* header outside the list is never seen. It says the S3 router then selects CopyObject on x-amz-copy-source alone. It says a write grant becomes a read. It says AWS S3 refuses the same request with HTTP 403 and AccessDenied, measured in the reporter's own AWS account on September 1, 2026. It says the Authorization-header path copies too. The advisory classifies this as CWE-347, Improper Verification of Cryptographic Signature. It prints the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N. The advisory does not name supabase-js createSignedUploadUrl. In @supabase/storage-js that method POSTs to /object/upload/sign/ and reads a token query parameter. On the v1.89.10 tag, storage-api registers that handler as POST /upload/sign/:bucketName/* on the object router, mounted at prefix object, and the handler calls signUploadObjectUrl and returns a url and a token. The S3 router is registered separately, at prefix s3. The Supabase docs page "S3 Compatibility" says: "Storage supports presigning a URL using query parameters. Specifically, Supabase Storage expects requests to be made using AWS Signature Version 4." The Supabase docs page "S3 Authentication" says: "S3 access keys provide full access to all S3 operations across all buckets and bypass RLS policies. These are meant to be used only on the server." The same page says: "All S3 operations performed with the Session Token are scoped to the authenticated user. RLS policies on the Storage Schema are respected." The advisory's reach is the objects the signing key can reach. A URL signed with the server S3 access key has the reach that docs page gives those keys. This card does not say whether a project on supabase.com was affected or has been patched. A read of the public Supabase changelog did not show an entry for this advisory. Hosted Storage versions are managed by Supabase. The version check is for a stack you run. The storage release v1.89.10, published November 4, 2026 at 17:29 UTC, says its bug fix is "require SignedHeaders coverage for S3 route-selector and copy headers (#1662)". Pull request 1662, merged the same day, says: "Any header that selects the S3 operation, or that CopyObject/UploadPartCopy reads to decide its behavior, must now be part of SignedHeaders if present on the request otherwise the request is rejected with 403 AccessDenied." Docker Hub has supabase/storage-api:v1.89.9, pushed November 4, 2026 at 12:44 UTC, and supabase/storage-api:v1.89.10, pushed the same day at 17:31 UTC. The published arm64 layers for supabase/storage-api:v1.89.10 include ENV VERSION=1.89.10. The official self-hosted docker-compose.yml on the master branch of supabase/supabase sets image: supabase/storage-api:v1.89.12. Docker Hub has that tag, pushed November 4, 2026 at 23:31 UTC. v1.89.12 is later than 1.89.10. A checkout of that file from an earlier day can still pin an older tag. On the v1.89.10 tag, src/app.ts registers GET /version and sends the version from config. src/config.ts sets that version from the VERSION environment variable, or the string 0.0.0 when the variable is unset, and the default listen port is 5000. The official compose healthcheck requests http://storage:5000/status with wget. That storage service does not publish a host port in that file.

Root cause

A SigV4 presigned PUT URL from Storage's S3 endpoint can sign only the host header, and storage-api checked the signature against that list alone. GitHub Advisory GHSA-3m3f-pjv4-x2fp says a presigned PUT URL carries X-Amz-SignedHeaders=host and signs only that header. It says storage-api builds the canonical request from the names in that list, never from the headers that arrived, so an x-amz-* header outside the list is never seen. It says the S3 router then selects CopyObject on x-amz-copy-source alone, and a write grant becomes a read. The copy runs as the signer, so the read is any object that signing key can reach, in any bucket. The advisory says AWS S3 refuses the same request with HTTP 403 and AccessDenied. It says the Authorization-header path copies too. The advisory points at constructCanonicalHeaders() in src/storage/protocols/s3/signature-v4.ts, lines 485-517 on the v1.73.0 tag, and at verify() on lines 288-309 of that file. It says the unsigned header then picks the route: copy-object.ts registers CopyObject on '/:Bucket/*|x-amz-copy-source', and PutObject registers the same method and path with no header part. Those line numbers are the ones the advisory gives for the v1.73.0 tag. The patched release is storage-api 1.89.10. Its release notes name pull request 1662, "require SignedHeaders coverage for S3 route-selector and copy headers". That pull request says: "Any header that selects the S3 operation, or that CopyObject/UploadPartCopy reads to decide its behavior, must now be part of SignedHeaders if present on the request otherwise the request is rejected with 403 AccessDenied." The Supabase docs page "S3 Authentication" says S3 access keys provide full access to all S3 operations across all buckets and bypass RLS, and that those keys are meant only for the server. A presigned URL signed by that key carries that key's reach. The same page says a session token scopes S3 operations to the authenticated user and that RLS policies on the storage schema are respected.

Before and after

The storage service image line. Docker Hub has supabase/storage-api:v1.89.9, pushed November 4, 2026 at 12:44 UTC, and supabase/storage-api:v1.89.10, pushed the same day at 17:31 UTC. GitHub Advisory GHSA-3m3f-pjv4-x2fp says @supabase/storage-api <= 1.89.9 is affected and names 1.89.10 as the patched version. The v prefix is the form used by those Docker Hub tags and by the official self-hosted docker-compose.yml. That file, on the master branch, sets image: supabase/storage-api:v1.89.12. Docker Hub has v1.89.12, pushed November 4, 2026 at 23:31 UTC. v1.89.12 is later than 1.89.10. The after line is the first patched tag the advisory names. A file that already says v1.89.12 stays on v1.89.12. This pair does not show a request.

Before

image: supabase/storage-api:v1.89.9

After

image: supabase/storage-api:v1.89.10

Fix prompt

In this project only. Do not scan or test anyone else's app. Do not open a Supabase project or a server you do not own. Do not print keys, tokens, passwords, presigned URLs, or environment variable values. When you mention a variable, print the name only. Do not send a request that adds a header to a presigned URL. Do not print such a request.

1. This prompt applies if this project issues a SigV4 presigned PUT URL from Supabase Storage's S3 endpoint, or if it runs the supabase/storage-api image. If it does neither, say so and stop.

2. Say whether this project uses a hosted project on supabase.com or a storage-api container this project runs. If it only uses a hosted project, stop after this step. Hosted Storage versions are managed by Supabase. GitHub Advisory GHSA-3m3f-pjv4-x2fp does not say whether hosted projects were affected or patched, and a read of the public Supabase changelog did not show an entry for it. Do not claim the hosted project is patched. Do not claim it is unpatched. The version check below is for a stack this project runs.

3. If this project runs storage-api, find the image line for supabase/storage-api in this project's Docker Compose file, and report the tag. Also run docker compose images, or docker ps, on this project's own host and report the tag that is actually running. The advisory says @supabase/storage-api <= 1.89.9 is affected and 1.89.10 is the patched version. Docker Hub tags use a v prefix: v1.89.9 was pushed November 4, 2026 at 12:44 UTC, and v1.89.10 was pushed the same day at 17:31 UTC. The published arm64 layers for supabase/storage-api:v1.89.10 include ENV VERSION=1.89.10. GET /version sends the config value, which is that variable when it is set. If the running tag is v1.89.10 or later, say so and do not change it. The official self-hosted docker-compose.yml on the master branch of supabase/supabase sets image: supabase/storage-api:v1.89.12. Docker Hub has v1.89.12, pushed November 4, 2026 at 23:31 UTC. v1.89.12 is later than 1.89.10. Do not replace v1.89.12 with v1.89.10. Do not print env values.

4. On this project's own host, request GET /version from the storage service. On the v1.89.10 tag, src/app.ts registers GET /version and sends the version string. src/config.ts reads VERSION, and uses 0.0.0 when that variable is unset. The default listen port in that file is 5000. The official compose healthcheck calls wget against http://storage:5000/status, and that compose file does not publish port 5000 on the host, so the request stays inside this project's compose network. A response of 1.89.10 or a later 1.89.x, or any later version, is the patched line. A response of 0.0.0 means VERSION was unset. Use the image tag in that case. Do not send any other request. Do not add a header.

5. If the running image is older than 1.89.10, change this project's image tag to v1.89.10 or a later tag you have confirmed exists. If this project tracks the official self-hosted compose file, set the tag that file uses. As read for this card, that tag is v1.89.12. Do not invent a tag. Do not change other services. Show me the diff. Then tell me the commands for this project's own host: docker compose pull, for the storage service name in this file, then docker compose up -d for that service. The service name in the official file is storage. Do not run those commands unless I ask. Do not print secrets.

6. In this project's own code, find where a SigV4 presigned PUT URL is created. Search for the S3 client presign call this project already has, and for X-Amz-Algorithm. Give the file and the line. Confirm the URL is built on the server, for one object, and that the S3 secret access key is not in client code. The Supabase docs page "S3 Authentication" says S3 access keys provide full access to all S3 operations across all buckets and bypass RLS policies, and that these keys are meant to be used only on the server. Do not move a key into the browser. Do not print the key or a URL. If the code already sets an expiry, report that number of seconds and the file. Do not invent a new expiry. If the expiry is long enough that a URL you handed out is still valid, say so and ask me before you change it. The advisory describes a URL for one object. Do not reuse one URL for a different object. Show me the diff only if you change code I already have.

7. If the only upload URLs in this project come from supabase-js createSignedUploadUrl, say so. That method POSTs to /object/upload/sign/ and reads a token. The advisory does not name it. Do not replace it with an S3 presigned PUT URL. Do not edit it for this advisory.

8. Show me the diffs. Do not deploy unless I ask. Tell me to read my own image tag again after the container restarts, and to open GET /version on my own storage service. Tell me the patched line is 1.89.10 or later. Do not send a request that adds a header to an upload URL.

Do not print keys. 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 machine that runs your own Supabase, read the supabase/storage-api image tag with docker compose images or docker ps, and read the image line in your own compose file. GitHub Advisory GHSA-3m3f-pjv4-x2fp says @supabase/storage-api <= 1.89.9 is affected and 1.89.10 is patched. Docker Hub tags put a v in front: v1.89.9 is affected, v1.89.10 is the patched tag, and the official self-hosted docker-compose.yml on master pins v1.89.12, which is later than 1.89.10. Do not run this on a server you do not own.
  2. On your own storage service, request GET /version and nothing else. On the v1.89.10 tag, src/app.ts sends the version from config, src/config.ts reads the VERSION environment variable and uses 0.0.0 when it is unset, and the default port is 5000. The official compose healthcheck calls wget against http://storage:5000/status and does not publish that port on the host. A body of 1.89.10 or later is the patched line. A body of 0.0.0 means VERSION was unset, so use the image tag. The published arm64 layers for supabase/storage-api:v1.89.10 include ENV VERSION=1.89.10, and GET /version sends that config value. Do not add a header, and do not point this at a host you do not run.
  3. In your own code, search for the presign call that builds an S3 PUT URL, and for the variable names S3_PROTOCOL_ACCESS_KEY_ID and S3_PROTOCOL_ACCESS_KEY_SECRET. The Supabase docs page "S3 Authentication" says those access keys provide full access across all buckets, bypass RLS, and are meant only for the server. Confirm the secret is not in client code, and confirm each presigned URL names one object. Do not print the key or a URL, and do not search a repository you do not own.

Common questions

My app uses createSignedUploadUrl from supabase-js. Is that this bug?

GitHub Advisory GHSA-3m3f-pjv4-x2fp does not name createSignedUploadUrl. That method, in @supabase/storage-js, POSTs to /object/upload/sign/ and reads a token query parameter. On storage-api v1.89.10 the matching route is POST /upload/sign/:bucketName/* on the object router, which is mounted at the prefix object. The handler calls signUploadObjectUrl and returns a url and a token. The S3 router is a different registration, prefix s3. The advisory describes a SigV4 presigned PUT URL whose X-Amz-SignedHeaders value is host. This card does not say the REST token method is that SigV4 URL.

My project is on supabase.com. Do I update a container?

You do not run the storage-api image for a hosted project, so you cannot set its version from your repo. Hosted Storage versions are managed by Supabase. This card does not say whether a hosted project was affected or has been patched. A read of the public Supabase changelog did not turn up an entry for GHSA-3m3f-pjv4-x2fp. The version check on this card is for a stack you run yourself.

My image tag is already v1.89.12. What do I change?

Leave it. GitHub Advisory GHSA-3m3f-pjv4-x2fp says @supabase/storage-api <= 1.89.9 is affected and 1.89.10 is the patched version. v1.89.12 is later than 1.89.10. The official self-hosted docker-compose.yml on the master branch of supabase/supabase sets image: supabase/storage-api:v1.89.12. Docker Hub has that tag. Moving that line back to v1.89.10 is a downgrade.

Sources

Same symptom

Same platform