Scan your whole stack
From OX Research Newsroom
Are you using @otwdesign/plugin-storage?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.2
@otwdesign/plugin-storage was last scanned on 30 Nov 2026 at version 1.1.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.1.2 LATEST | 30 Nov 2026 | No rules fired |
| 1.1.0 | 24 Nov 2026 | No rules fired |
| 1.0.1 | 24 Nov 2026 | No rules fired |
| 1.0.0 | 24 Nov 2026 | Not shown |
| 0.0.0-stage | 24 Nov 2026 | Not shown |
Findings for v1.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.1.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Keeps the media library's files in object storage, for sites whose host has no disk to keep them on, such as Vercel. Large files go from the browser straight to the storage, so a host's limit on a request's size (Vercel: 4.5 MB) doesn't cap uploads.
rclone serve s3. Over plain fetch, with no SDK.storage.drivers registry.Needs OTW CMS 1.9 or later.
npx cms plugin add @otwdesign/plugin-storage
Then, in the admin:
Until step 4 the plugin changes nothing: uploads stay on the disk, on the paths they always took.
| Service | What to enter | Never writing over a file |
|---|---|---|
| Amazon S3 | bucket, region | the service refuses (If-None-Match) |
| Cloudflare R2 | bucket, account ID | the service refuses |
| Supabase Storage | bucket, project reference, region | looked for first, under a lock |
| Another | bucket, region, address, path or host style | your choice; looking first is the safe default |
| Vercel Blob | public or private, as the store was made | the store refuses |
Two uploads of photo.jpg must become photo.jpg and photo-1.jpg, never one file. Where a
service doesn't refuse a second write itself, the plugin looks first, after claiming the name in
the site's database so two servers can't both find it free. The claim is a row, not a lock: no
database connection is held while a file is sent. The connection test says whether a service
refuses.
For S3: s3:PutObject, s3:GetObject, s3:DeleteObject on the bucket's objects, and
s3:ListBucket on the bucket, without which a missing file looks forbidden (403) instead of
missing (404).
Give the keys this bucket only, and this folder only if the bucket is shared
(arn:aws:s3:::bucket/folder/*). Whoever may change Storage's settings chooses the bucket and
folder the keys are used on, and the site serves /uploads/<path> for any file under that
folder, in the library or not. So use a bucket of its own, or a Folder, and never one that
also holds backups or private files.
For files of 4 MB or more the browser sends the bytes to the bucket itself, at an address the site signs for that one file, for fifteen minutes. The bucket must allow the site's pages:
[
{
"AllowedOrigins": ["https://www.example.com"],
"AllowedMethods": ["PUT"],
"AllowedHeaders": ["content-type"],
"MaxAgeSeconds": 3600
}
]
The file waits under _uploads/ as plain bytes (application/octet-stream), which the site
never serves. The site then reads it back, checks its type from its bytes, makes an image's
sizes, stores it under its own name and deletes the one that waited. A waiting file that's never
finished, given up or refused is deleted when its upload runs out, an hour to a day later.
Two things to set on the bucket itself:
_uploads/ after a day: the net under anything that arrives
after the site stopped looking._uploads/: until it's stored or swept, a waiting
file sits at the bucket's own address, unchecked. It can only be downloaded, never shown as a
page, and only the person uploading knows its address; a policy that denies public GetObject
on <folder>/_uploads/* closes it.Without CORS rules, set Uploads from the browser to "Every file goes through the site": uploads then work up to the host's limit on a request.
With a public address (a CDN's, a custom domain's, pub-….r2.dev), files are linked there
directly. Without one the bucket can stay private: the site serves /uploads/… from it, with
ranges, at the cost of a request to the bucket per file. Links to /uploads/… saved in content
keep working either way.
Storage › Status says how much the media library holds: the size of every upload and every image size made from one, from the CMS's own records, with no request to the bucket. Set Storage limit, in GB to your plan's quota and it shows the share used, warns from 90% and says when it's passed. It never stops an upload: your provider enforces its own limit.
It counts this site's library, not the bucket: not files the library doesn't know (another site's, or an upload still waiting), and not the untouched originals the CMS keeps of images over 2560 pixels, which it says when there are any. Object storage has no "free space" to ask for; a plan's real quota is in the provider's own console.
Run something that speaks S3 on it (MinIO, Garage, or rclone serve s3 over a folder), choose
"Another, or a server of your own", and enter its address. An address on the server's own
network (localhost, 10.…, 192.168.…) is refused unless the site's environment has
STORAGE_ALLOW_PRIVATE_ENDPOINT=1: a setting typed in the admin must not be able to make the
site talk to services inside its network. A cloud's metadata address is refused always. Use
https outside a private network; the Status screen says when an address is plain http. It must be reachable from the site,
and from browsers too for uploads over the host's limit, and it must stay on: when it's off,
the site's images are too. A PC that sleeps is better as a copy of a bucket (rclone sync) than
as the storage.
| Variable | For |
|---|---|
STORAGE_S3_ACCESS_KEY_ID |
The bucket's access key ID. Required for S3. |
STORAGE_S3_SECRET_ACCESS_KEY |
Its secret. Required for S3. |
BLOB_READ_WRITE_TOKEN |
Vercel Blob's token; Vercel sets it when a store is connected. |
BLOB_STORE_ID |
The Blob store's id, with Vercel's OIDC sign-in instead of a token. |
VERCEL_OIDC_TOKEN |
Set by Vercel; with BLOB_STORE_ID, signs in to Blob without a token. |
STORAGE_ALLOW_PRIVATE_ENDPOINT |
1 to let the storage's address be on the server's own network. |
STORAGE_ACTIVE |
true or false: overrides "Keep uploads in this storage". |
STORAGE_DRIVER |
s3, vercel-blob or plugin: overrides the choice. |
STORAGE_S3_SERVICE, STORAGE_S3_BUCKET, STORAGE_S3_REGION, STORAGE_S3_ACCOUNT, STORAGE_S3_ENDPOINT, STORAGE_S3_PATH_STYLE |
Override the bucket's settings. Set, they can't be changed from the admin. |
STORAGE_PUBLIC_URL |
Overrides the public address. |
STORAGE_PREFIX |
Overrides the folder inside the bucket. |
A setting with its variable set shows read-only in the admin. The two keys and the token are read from the environment only.
// A driver of your own: it appears when Settings › Storage says "A driver another plugin adds".
cms.registries.get('storage.drivers').add({
id: 'attic',
label: 'The attic',
directUploads: false,
problem: () => null, // or what's missing, in a sentence
publicUrl: (key) => null, // or the file's address
connect: async () => ({ create, read, stat, delete: remove }),
})
cms.services.get('storage').status() // { active, driver, problem }
await cms.services.get('storage').usage() // { items, files, bytes, limitBytes, … }
create() must never write over a file: it answers false when the key is taken.
storage.manage to people you'd trust with that.Measured on sites built from npm with OTW CMS 1.12, once without the plugin and once with it:
| Where | Without the plugin | With it | The difference |
|---|---|---|---|
| Browser files of the build | 1,069,249 B | 1,069,249 B | None: the same files |
| A site page (HTML) | 11,579 B | 11,579 B | None |
| The sign-in page (HTML) | 16,466 B | 16,466 B | None |
| Another admin screen (HTML) | 35,100 B | 36,158 B | The menu, 0.2 KB compressed |
| Time per request | 3.8 to 6.0 ms | 3.8 to 6.1 ms | Within 0.1 ms: not measurable |
| Code loaded when the server starts | 20 KB | The settings and their checks | |
| The server's memory at start | 42.3 MB | 42.6 MB | 0.3 MB |
The same switched on or off. The S3 client and its signing (6 KB) load with the first file the site stores or serves itself, so a site whose bucket has a public address loads them with the first upload. The admin's screens, the count of the space used and the copy (11 KB) load when one of the plugin's screens is first opened; the connection test with its first run; Vercel Blob's driver only on a site that chose it, and its SDK (1.8 MB) with that site's first file.
Plugins › Storage › Delete Data drops its two tables (storage_copy_runs, storage_claims). Files in the
bucket are not touched.
pnpm install # the CMS is linked from ../nextjs-cms
pnpm test:all # lint, types, unit tests, and browser tests against a production build
The unit and browser tests run against site/e2e/fake-s3.mjs, a stand-in for S3 that checks
every request's signature (ports 3500 and 3501 for the browser tests). The signer itself is held
to Amazon's own (@smithy/signature-v4) in test/sigv4.test.ts.
Apache-2.0
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.