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
3 new5 fixed1 internal
Security
3 advisories affect 2.12.1; 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
vitestfromwrangler init's generatedtsconfig.jsontypesarrayPreviously,
wrangler initgenerated atsconfig.jsonwith"types": ["@cloudflare/workers-types", "vitest"], even if Vitest tests weren't generated.
Unlike Jest, Vitest doesn't provide global APIs by default, so there's no need for ambient types.Include .wrangler directory in gitignore template used with
wrangler initAdd
--outdiras an option when runningwrangler pages functions build.This deprecates
--outfilewhen building a Pages Plugin with--plugin.When building functions normally,
--outdirmay be used to produce a human-inspectable format of the_worker.bundlethat is produced.Enable bundling in Pages Functions by default.
We now enable bundling by default for a
functions/folder and for an_worker.jsin Pages Functions. This allows you to use external modules such as Wasm. You can disable this behavior in Direct Upload projects by using the--no-bundleargument inwrangler pages publishandwrangler pages dev.Preserve the entrypoint filename when running
wrangler publish --outdir <dir>.Previously, this entrypoint filename would sometimes be overwritten with some internal filenames. It should now be based off of the entrypoint you provide for your Worker.
Bring
pages devlogging in line withdevproper'swrangler pages devnow defaults to logging at theloglevel (rather than the previouswarnlevel), and thepagesprefix is removed.--experimental-localwithwrangler pages devWe previously had a bug which logged an error (
local worker: TypeError: generateASSETSBinding2 is not a function). This has now been fixed.Show correct link for how to create an API token in a non-interactive environment
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.