wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
2.21.3 is the newest release of 2.x.
In short
3 new2 fixed
Security
3 advisories affect 2.13.0; 3.114.17 fixes them
- CriticalArbitrary remote code execution within `wrangler dev` Workers sandboxGHSA-f8mp-x433-5wpf · 3 Jan 2024Fixed in 2.20.2
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 3.114.17
- ModerateCloudflare Wrangler directory traversal vulnerabilityGHSA-8c93-4hch-xgxp · 3 Aug 2023Fixed in 2.20.1
Release note
Minor Changes
Support external imports from
cloudflare:...prefixed modulesGoing forward Workers will be providing built-in modules (similar to
node:...) that can be imported using thecloudflare:...prefix. This change adds support to the Wrangler bundler to mark these imports as external.Thanks @jspspike@gmail.com! - feature: add
wrangler deployment viewandwrangler rollbacksubcommands
wrangler deployments view [deployment-id] will get the details of a deployment, including bindings and usage model information.
This information can be used to help debug bad deployments.
wrangler rollback [deployment-id] will rollback to a specific deployment in the runtime. This will be useful in situations like recovering from a bad
deployment quickly while resolving issues. If a deployment id is not specified wrangler will rollback to the previous deployment. This rollback only changes the code in the runtime and doesn't affect any code or configurations
in a developer's local setup.
wrangler deployments list will list the 10 most recent deployments. This command originally existed as wrangler deployments
example of view <deployment-id> output:
Deployment ID: 07d7143d-0284-427e-ba22-2d5e6e91b479 Created on: 2023-03-02T21:05:15.622446Z Author: jspspike@gmail.com Source: Upload from Wrangler 🤠 ------------------------------------------------------------ Author ID: e5a3ca86e08fb0940d3a05691310bb42 Usage Model: bundled Handlers: fetch Compatibility Date: 2022-10-03 --------------------------bindings-------------------------- [[r2_buckets]] binding = "MY_BUCKET" bucket_name = "testr2" [[kv_namespaces]] id = "79300c6d17eb4180a07270f450efe53f" binding = "yeee"
Add support for Queue Consumer concurrency
Consumer concurrency allows a consumer Worker processing messages from a queue to automatically scale out horizontally in order to keep up with the rate that messages are being written to a queue.
The newmax_concurrencysetting can be used to limit the maximum number of concurrent consumer Worker invocations.
Patch Changes
Display cause when local D1 migrations fail to apply
Previously, if
wrangler d1 migrations apply --localfailed, you'd see something like:❌ Migration 0000_migration.sql failed with following Errors ┌──────────┐ │ Error │ ├──────────┤ │ D1_ERROR │ └──────────┘
We'll now show the SQLite error that caused the failure:
❌ Migration 0000_migration.sql failed with following Errors ┌───────────────────────────────────────────────┐ │ Error │ ├───────────────────────────────────────────────┤ │ Error: SqliteError: unknown database "public" │ └───────────────────────────────────────────────┘
Fix issue with
keep_varshaving no effect in wrangler.toml
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.