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
1 new5 fixed1 internal
Security
3 advisories affect 2.1.12; 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
Patch Changes
Display a more helpful error when trying to publish to a route in use by another worker.
Previously, when trying to publish a worker to a route that was in use by another worker,
there would be a really unhelpful message about a failed API call. Now, there's a much
nicer message that tells you what worker is running on that route, and gives you a link
to the workers overview page so you can unassign it if you want.⛅️ wrangler 2.1.11 -------------------- Total Upload: 0.20 KiB / gzip: 0.17 KiB ✘ [ERROR] Can't publish a worker to routes that are assigned to another worker. "test-custom-routes-redeploy" is already assigned to route test-custom-worker.swag.lgbt Unassign other workers from the routes you want to publish to, and then try again. Visit https://dash.cloudflare.com/<account_id>/workers/overview to unassign a worker from a route.
Closes #1849
Make d1 help print if a command is incomplete
Prior to this change, d1's commands would return silently if wrangler wasn't supplied enough arguments to run the command.
This change resolves this issue, and ensures help is always printed if the command couldn't run.
Offer to create a workers.dev subdomain if a user needs one
Previously, when a user wanted to publish a worker to workers.dev by setting
workers_dev = truein theirwrangler.toml,
but their account didn't have a subdomain registered, we would error out.Now, we offer to create one for them. It's not implemented for
wrangler dev, which also expects you to have registered a
workers.dev subdomain, but we now error correctly and tell them what the problem is.Make it possible for values in vars and defines to have colons (:)
Prior to this change, passing --define someKey:some-value.com would result in an incomplete value being passed to the Worker.
This change correctly handles colons for var and define in
wrangler devandwrangler publish.Catch unsupported terminal errors and provide a nicer error message.
Wrangler depends on terminals supporting raw mode. Previously, attempting to run wrangler from a terminal that didn't support raw mode would result in
an Ink error, which was both an exposure of an internal implementation detail to the user and also not actionable:ERROR Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default. Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupportedNow, we provide a much nicer error, which provides an easy next step for th user:
ERROR: This terminal doesn't support raw mode. Wrangler uses raw mode to read user input and write output to the terminal, and won't function correctly without it. Try running your previous command in a terminal that supports raw mode, such as Command Prompt or Powershell.
Closes #1992
Support subdomains with wrangler dev for routes defined with
zone_name(instead of just for routes defined withzone_id)
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.