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
6 fixed3 internal
Security
3 advisories affect 2.1.11; 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
Remove dependency on create-cloudflare.
Previously,
wrangler generatewas a thin wrapper aroundcreate-cloudflare. Now, we've moved over the logic from that package directly intowrangler.Hide deprecated flags from --help menu
wrangler pages publishshould prioritize_worker.jsover/functionsif both existwrangler pages devshould prioritize_worker.jsWhen using a
_worker.jsfile, the entire/functionsdirectory should be ignored – this includes its routing and middleware characteristics. Currentlywrangler pages devdoes the reverse, by prioritizing/functionsover_worker.js. These changes fix the current behaviour.Allow unsetting of automatically generated
Linkheaders using_headersand the! LinkoperatorOnly generate
Linkheaders from simple<link>elements.Specifically, only those with the
rel,hrefand possiblyasattributes. Any element with additional attributes will not be used to generate headers.
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.