wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
4.167.0 is the newest release of 4.x.
In short
1 security3 new3 fixed4 internal
- Security
Bump
wsfrom 8.20.1 to 8.21.0 to address GHSA-96hv-2xvq-fx4p
Release note
Minor Changes
Add
cf-wrangler builddelegate supportThe experimental
cf-wranglerdelegate binary now acceptsbuildand emits the Build Output API directory through Wrangler's new-config build path. This lets parent tools invoke Wrangler's build-output implementation withcf-wrangler buildinstead of shelling out through the public Wrangler CLI.Add experimental
--experimental-cf-build-outputflag towrangler buildWhen used alongside
--experimental-new-config,wrangler buildnow emits a self-contained Build Output API directory under.cloudflare/output/v0/instead of delegating towrangler deploy --dry-run.
Patch Changes
- Security
Bump
wsfrom 8.20.1 to 8.21.0 to address GHSA-96hv-2xvq-fx4pGHSA-96hv-2xvq-fx4p / CVE-2026-48779 (high severity) reports a remote memory-exhaustion DoS in
ws@<8.21.0: a peer sending a high volume of tiny fragments and data chunks over modest network traffic can crash awsserver or client via OOM. The fix shipped in ws@8.21.0 (commit2b2abd45, released 2026-05-22), which also introduces themaxBufferedChunksandmaxFragmentsoptions. This change bumps the workspace catalog entry so thatminiflare,wrangler, and@cloudflare/vite-pluginall pick up the patched release. Resolve auto-provisioned D1 bindings via the API in remote subcommands
Remote D1 subcommands (
d1 execute --remote,d1 export --remote,d1 info,d1 insights,d1 delete,d1 migrations apply --remote,d1 migrations list --remote,d1 time-travel) previously failed with:Found a database with name or binding DB but it is missing a database_id, which is needed for operations on remote resources.
when the
[[d1_databases]]config entry only hadbindinganddatabase_name(the shapewrangler deploywrites for automatically-provisioned bindings). They now resolve the real database UUID viaGET /accounts/:accountId/d1/database/:name?fields=uuidand proceed as ifdatabase_idhad been set in config.If the config entry only has a
binding(nodatabase_name, nodatabase_id), the lookup uses the same namewrangler deploywould create via auto provisioning (<worker name>-<binding-lowercased-with-dashes>).Non-404 API failures (auth, rate-limit, server errors) now propagate verbatim instead of being masked as "database not found".
Respect
find_additional_modules = falsewhenno_bundleis setWhen using
no_bundle = true, wrangler was always scanning for and attaching additional modules even iffind_additional_moduleswas explicitly set tofalsein the config. Additional modules are now only collected whenfind_additional_modulesis notfalse, consistent with the bundled code path.Support
dev.pluginon typed services bindingsWrangler only honored
dev.pluginonunsafe.bindingsentries, so users authoring a service binding viaservicescould not wire it to a local Miniflare plugin duringwrangler dev— they had to fall back tounsafe.bindingsand accept a "directly supported by wrangler" warning. Typed services bindings now accept the samedev: { plugin, options? }shape, route the binding through Miniflare's external-plugin pathway inwrangler dev, and strip the field at deploy time. Validation rejects malformeddevshapes.Mention temporary preview accounts in
wrangler whoamioutput when unauthenticatedWhen you run
wrangler whoamiwithout being logged in, Wrangler now also tells you that you can deploy without logging in by running a command likewrangler deploy --temporaryto use a temporary preview account.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.