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
1 new4 fixed
Security
3 advisories affect 2.1.14; 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
The type command aggregates bindings and custom module rules from config, then generates a DTS file for both service workers'
declare global { ... }or module workers'interface Env { ... }Custom module rules generate
declare modules based on the module type (Text,DataorCompiledWasm).
Module Example Outputs:CompiledWasm
declare module "**/*.wasm" { const value: WebAssembly.Module; export default value; }Data
declare module "**/*.webp" { const value: ArrayBuffer; export default value; }Text
declare module "**/*.text" { const value: string; export default value; }pages:
wrangler pages devmatches routing rules in_routes.jsontoo looselyCurrently, the logic by which we transform routing rules in
_routes.jsonto
regular expressions, so we can performpathnamematching & routing when we
runwrangler pages dev, is too permissive, and leads to serving incorrect
assets for certain url paths.For example, a routing rule such as
/foowill incorrectly match pathname/bar/foo. Similarly, pathname/foowill be incorrectly matched by the/routing rule.
This commit fixes our routing rule to pathname matching logic and bringswrangler pages devon par with routing in deployed Pages projects.Delete site/assets namespace when a worker is deleted
This patch deletes any site/asset kv namespaces associated with a worker when
wrangler deleteis used. It finds the namespace associated with a worker by using the names it would have otherwise used, and deletes it. It also does the same for the preview namespace that's used withwrangler dev.Wrangler deployments command
Added support for the deployments command, which allows you to list the last ten deployments for a given script.The information will include:
Version ID
Version number
Author email
Latest deploy
Created on
resolves #2089
Fixed issue where information and warning messages from Miniflare were being
discarded when usingwrangler dev --local. Logs from Miniflare will now be
coloured too, if the terminal supports this.
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.