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
4 new5 fixed
Security
3 advisories affect 2.2.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
D1 execute and backup commands improvements
Better and faster handling when importing big SQL files using execute --file
Increased visibility during imports, sends output with each batch API call
Backups are now downloaded to the directory where wrangler was initiated from
Add warnings around bundle sizes for large scripts
Prints a warning for scripts > 1MB compressed, encouraging smaller
script sizes. This warning can be silenced by setting the
NO_SCRIPT_SIZE_WARNING env variableIf a publish fails with either a script size error or a validator error
on script startup (CPU or memory), we print out the largest 5
dependencies in your bundle. This is accomplished by using the esbuild
generated metafile.Adds support for Cloudflare Queues. Adds new CLI commands to configure Queues. Queue producers and consumers can be defined in wrangler.toml.
Enable support for
wrangler devon Workers behind Cloudflare Access, utilisingcloudflared. If you don't havecloudflaredinstalled, Wrangler will prompt you to install it. If you do, then the first time you start developing usingwrangler devyour default browser will open with a Cloudflare Access prompt.
Patch Changes
Added current version to publish output
Missing Worker name using
--from-dash
Added the--from-dashname as a fallback when no name is provided in thewrangler initcommand.
Additionally added a checks to thestd.outto ensure that the name is provided.resolves #1853
If
--env <env>is specified, we'll now check.env.<env>/.dev.vars.<env>first.
If they don't exist, we'll fallback to.env/.dev.vars.Fixed importing installed npm packages with the same name as Node built-in
modules ifnode_compatis disabled.Computing the name from binding response
Now thevarswill be computed, example:[var.binding.name]: var.binding.textthis will resolve the issue that was occurring with
generating a TOML with incorrect fields for thevarskey/value pair.resolves #2048
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.