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 new3 fixed1 internal
Security
3 advisories affect 2.11.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
Previously, wrangler dev would not work if the root of your zone wasn't behind Cloudflare. This behaviour has changed so that now only the route which your Worker is exposed on has to be behind Cloudflare.
Pages now supports Proxying (200 status) redirects in it's _redirects file
This will look something like the following, where a request to /users/123 will appear as that in the browser, but will internally go to /users/[id].html.
/users/:id /users/[id] 200
Patch Changes
Correctly detect
service-workerformat when usingtypeof moduleWrangler automatically detects whether your code is a
modulesorservice-workerformat Worker based on the presence of adefaultexport. This check currently works by building your entrypoint withesbuildand looking at the output metafile.Previously, we were passing
format: "esm"toesbuildwhen performing this check, which enables format conversion. This may introduceexport defaultinto the built code, even if it wasn't there to start with, resulting in incorrect format detections.This change removes
format: "esm"which disables format conversion when bundling is disabled. See esbuild.github.io/api/ for more details.Ensure we don't mangle internal constructor names in the wrangler bundle when building with esbuild
Undici changed how they referenced
FormData, which meant that when used in our bundle process, we were failing to uploadmultipart/form-databodies. This affectedwrangler pages publishandwrangler publish.Upgraded to ES2022 for improved compatibility
Upgraded worker code target version from ES2020 to ES2022 for better compatibility and unblocking of a workaround related to issue #2029. The worker runtime now uses the same V8 version as recent Chrome and is 99% ES2016+ compliant. The only thing we don't support on the Workers runtime, the remaining 1%, is the ES2022 RegEx feature as seen in the compat table for the latest Chrome version.Compatibility table: kangax.github.io/compat-table/es2016plus/
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.