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 new4 fixed1 internal
Security
3 advisories affect 2.8.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 EmailEvent event type in
wrangler tail.Support bundling the raw Pages
_worker.jsbefore deployingPreviously, if you provided a
_worker.jsfile, then Pages would simply check the
file for disallowed imports and then deploy the file as-is.Not bundling the
_worker.jsfile means that it cannot containing imports to other
JS files, but also prevents Wrangler from adding shims such as the one for the D1 alpha
release.This change adds the ability to tell Wrangler to pass the
_worker.jsthrough the
normal Wrangler bundling process before deploying by setting the--bundle
command line argument towrangler pages devandwrangler pages publish.This is in keeping with the same flag for
wrangler publish.Currently bundling is opt-in, flag defaults to
falseif not provided.
Patch Changes
Send
wrangler docs d1to the right placeWrangler init --from-dash incorrectly expects index.ts while writing index.js
This PR fixes a bug where Wrangler would write a
wrangler.tomlexpecting an index.ts file, while writing an index.js file.Remove "experimental _routes.json" warnings
_routes.jsonis no longer considered an experimental feature, so let's
remove all warnings we have in place for that.Path should be optional for wrangler d1 backup download
This PR fixes a bug that forces folks to provide a
--outputflag towrangler d1 backup download.Add some guidance when folks encounter a 10021 error.
Error code 10021 can occur when your worker doesn't pass startup validation. This error message will make it a little easier to reason about what happened and what to do next.
Closes #2519
Allow
fetch()calls locally to accept URL Objects
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.