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
6 new2 fixed1 internal
Security
1 advisory affects 4.54.0; 4.59.1 fixes them
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 4.59.1
Release note
Minor Changes
Enable using
ctx.exportswith containersYou can now use containers with Durable Objects that are accessed via
ctx.exports.Now your config file can look something like this:
{ "name": "container-app", "main": "src/index.ts", "compatibility_date": "2025-12-01", "compatibility_flags": ["enable_ctx_exports"], // compat flag needed for now. "containers": [ { "image": "./Dockerfile", "class_name": "MyDOClassname", "name": "my-container" }, ], "migrations": [ { "tag": "v1", "new_sqlite_classes": ["MyDOClassname"], }, ], // no need to declare your durable object binding here }Note that when using
ctx.exports, where you previously accessed a Durable Object via something likeenv.DO, you should now access withctx.exports.MyDOClassname.Refer to the docs for more information on using
ctx.exports.Wrangler will no longer try to add additional configuration to projects using
@cloudflare/vite-pluginwhen deploying or runningwrangler setupWhen a Vite project is detected, install
@cloudflare/vite-pluginSupport Analog projects in autoconfig
Add
containers sshcommand
Patch Changes
Prevent reporting SQLite error from
wrangler d1 executeto SentryAdd extra logging to user log-in flow for diagnosing failed login requests
Remove image validation for containers on wrangler deploy.
Internal customers are able to use additional image registries and will run into failures with this validation. Image registry validation will now be handled by the API.
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.