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 new5 fixed
Security
3 advisories affect 2.10.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 mtls-certificate commands and binding support
Functionality implemented first as an api, which is used in the cli standard
api commandsNote that this adds a new OAuth scope, so OAuth users will need to log out and
log back in to use the new 'mtls-certificate' commands
However, publishing with mtls-certifcate bindings (bindings of type
'mtls_certificate') will work without the scope.Upgrade
miniflareto2.12.0, including support for R2 multipart upload bindings, thenodejs_compatcompatibility flag, D1 fixes and more!Added additional fields to the output of
wrangler deploymentscommand. The additional fields are from the new value in the responseannotationswhich includesworkers/triggered_byandrollback_fromExample:
Deployment ID: Galaxy-Class Created on: 2021-01-04T00:00:00.000000Z Trigger: Upload from Wrangler 🤠 Rollback from: MOCK-DEPLOYMENT-ID-2222
Patch Changes
Add wasm support in
wrangler pages publishCurrently it is not possible to import
wasmmodules in either Pages
Functions or Pages Advanced Mode projects.This commit caries out work to address the aforementioned issue by
enablingwasmmodule imports inwrangler pages publish. As a result,
Pages users can now import theirwasmmodules withing their Functions
or_worker.jsfiles, andwrangler pages publishwill correctly
bundle everything and serve these "external" modules.Fix internal middleware system to allow D1 databases and
--test-scheduledto be used togetherMake sure that the pages publish --no-bundle flag is correctly recognized
Don't throw an error when omitting preview_database_id, warn instead
Make it possible to run SQL against preview databases
You can now import Wasm modules in Pages Functions and Pages Functions Advanced Mode (
_worker.js).
This change specifically enableswasmmodule imports inwrangler pages functions build.
As a result, Pages users can now import theirwasmmodules within their Functions or_worker.jsfiles, andwrangler pages functions buildwill correctly bundle everything
and output the expected result file.
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.