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
2 new5 fixed
Security
3 advisories affect 2.6.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
Add support for
--experimental-localtowrangler pages devwhich will use theworkerdruntime.Add
@miniflare/treenvironment polyfill to@cloudflare/pages-shared.Add support for Analytics Engine bindings.
For example:
analytics_engine_datasets = [ { binding = "ANALYTICS", dataset = "my_dataset" } ]
Patch Changes
Trigger login flow if a user runs
wrangler devwhile logged outPreviously, we would just error if a user logged out and then ran
wrangler dev.
Now, we kick them to the OAuth flow and suggest runningwrangler dev --localif
the login fails.Closes #2147
d1 not using the preview database when using
wrangler devAfter this fix, wrangler will correctly connect to the preview database, rather than the prod database when using
wrangler devUse the user's preferred default branch name if set in .gitconfig.
Previously, we would initialize new workers with
mainas the name of the default branch.
Now, we see if the user has a custom setting in .gitconfig forinit.defaultBranch, and use
that if it exists.Closes #2112
Fix script reloads, and allow clean exits, when using
--experimental-localon LinuxFix DevTools inspector support when using
--(experimental-)local
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.