---
title: "wrangler 4.164.0: release notes, upgrades and advisories"
description: "wrangler 4.164.0: release notes, breaking changes by major version and 4 known advisories with their fix."
url: https://inlinr.com/packages/wrangler
lang: en
---

[Packages](https://inlinr.com/packages)

# wrangler

4.164.0 · 17 Nov 2026 MIT OR Apache-2.0 49.3M / week [Repository](https://github.com/cloudflare/workers-sdk) [Homepage](https://github.com/cloudflare/workers-sdk#readme) [npm](https://www.npmjs.com/package/wrangler) [Atom feed](https://inlinr.com/packages/feed/wrangler)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/wrangler/upgrade)

LineNewestSecurity

- 4.x 4.167.0 Safe from 4.59.1 Latest line
- 3.x 3.114.17 Safe from 3.114.17 [To 4.164.0](https://inlinr.com/packages/wrangler/upgrade/3.114.17-4.164.0)
- 2.x and older 2.21.3 2 open advisories, worst high  · last release Mar 2025, no longer updated [To 4.164.0](https://inlinr.com/packages/wrangler/upgrade/2.21.3-4.164.0)

## Latest releases

[All 560 releases](https://inlinr.com/packages/wrangler/releases)

1. ### [4.167.0](https://inlinr.com/packages/wrangler/releases/4.167.0 "Open this release") [](https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.167.0 "Read this release where it was published")  
23 Nov 2026

  - Removed  
  Remove the `wrangler dispatch-namespace rename` command  
  Renaming a Workers for Platforms dispatch namespace left the namespace name stored in dispatcher bindings out of date, which could make Workers in the namespace impossible to read or delete by name. The Cloudflare API now rejects requests that change a dispatch namespace's name, so the command has been removed. To use a different name, create a new dispatch namespace and redeploy your Workers to it.
  - Support `--env-file` in the experimental `cf-wrangler dev` delegate  
  Wrangler-bundled projects can now use `cf dev -- --env-file ../../.env` to load a shared development file outside the project directory without enabling `CLOUDFLARE_INCLUDE_PROCESS_ENV`. Repeat `--env-file` to load multiple files, with later files overriding earlier values.
  - Exit with a nonzero status when the Basin SQL service rejects a query  
  `wrangler basin sql query` reports the service error and exits with status 1 so shell scripts and CI can detect a rejected query.
2. ### [4.166.0](https://inlinr.com/packages/wrangler/releases/4.166.0 "Open this release") [](https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.166.0 "Read this release where it was published")  
20 Nov 2026

  - Security  
  Update Undici to 7.30.2 to include upstream security fixes  
  This patch includes six upstream security fixes covering caching, redirects, and Subresource Integrity verification. Update the shared Undici dependency and matching types together so affected packages ship the patched version.
  - Show configured trigger targets during experimental `wrangler triggers deploy --dry-run`  
  Dry runs now print a "Would deploy" summary of routes, custom domains, cron schedules, Queue producers and consumers, Workflows, event triggers, and Email Routing addresses instead of exiting without a summary. Explicitly empty cron schedules and Email Routing addresses are shown as removals. The preview makes no API requests or authentication checks; when workers.dev is enabled, it reports that setting without looking up the account's subdomain.
  - Add `images.url_transformations` to the Wrangler configuration  
  The `images` block now accepts a `url_transformations` object for controlling `/cdn-cgi/image/` transformations on requests served by a Worker. `enabled` is required, and `allowed_origins` optionally lists the origins images may be fetched from (use `["*"]` to allow any origin). `binding` is now optional, so `url_transformations` can be configured without an Images binding:  
  ```
  {
    "images": {
      "url_transformations": {
        "enabled": true,
        "allowed_origins": ["images.example.com"]
      }
    }
  }
  ```
  Like the rest of the `images` block, `url_transformations` is not inherited by named environments, and must be specified in each environment that needs it.  
  `cloudflare.config.ts` gains the equivalent setting as a top-level `images` field on the Worker, with the Images binding remaining in `env`:  
  ```
  export default defineConfig({
    worker: {
      name: "my-worker",
      compatibilityDate: "2026-11-01",
      images: {
        urlTransformations: {
          enabled: true,
          allowedOrigins: ["images.example.com"],
        },
      },
    },
  });
  ```
  `cf migrate` carries `images.url_transformations` over to this field.  
  This change adds configuration and validation only. `url_transformations` is not supported in `previews`.
3. ### [4.165.0](https://inlinr.com/packages/wrangler/releases/4.165.0 "Open this release") [](https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.165.0 "Read this release where it was published")  
18 Nov 2026

  - Add a new `--force` flag to `d1 migrations apply` which skips the interactive confirmation and applies any pending migrations non-interactively. This is useful for CI and automation.  
  Usage example:  
  ```
  wrangler d1 migrations apply <db> --remote --force
  ```
  Fixes [#5017](https://github.com/cloudflare/workers-sdk/issues/5017)
  - Correct the dry-run setup message to say "exiting now" instead of "existing now".  
  The previous wording contained a typo and appeared in Wrangler setup output and other consumers of shared autoconfig.
  - Report `.dev.vars` and `.env` files that are not UTF-8 instead of silently loading no variables  
  Before Wrangler would incorrectly read non UTF-8 `.dev.vars` and `.env` files as UTF-8\. A `.dev.vars` file that is not UTF-8 now stops `wrangler dev` with a message that says how to fix it, and a `.env` file that is not UTF-8 is skipped with a warning. UTF-8 files, with or without a BOM, load as before.

Dependency tracking

## Know when your own dependencies move

wrangler had 1 security advisory in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[All 4](https://inlinr.com/packages/wrangler/security)

- [Arbitrary remote code execution within \`wrangler dev\` Workers sandbox](https://inlinr.com/advisories/GHSA-f8mp-x433-5wpf) Critical · fixed in 3.19.0, 2.20.2
- [Wrangler affected by OS Command Injection in \`wrangler pages deploy\`](https://inlinr.com/advisories/GHSA-36p8-mvp6-cv38) High · fixed in 4.59.1, 3.114.17
- [Arbitrary remote file read in Wrangler dev server](https://inlinr.com/advisories/GHSA-cfph-4qqh-w828) Moderate · fixed in 3.19.0

## Health of 4.164.0

[Details](https://inlinr.com/packages/wrangler/security#signals)

- **Provenance**: Present
- **Publisher**: GitHub Actions
- **Maintainers**: 1
- **Scorecard**: None
- **Size**: 15.8 MB

## Weekly downloads

## Works with

- [@cloudflare/workers-types optional](https://inlinr.com/packages/@cloudflare/workers-types)

## Same family

- [miniflare 57.3M/wk](https://inlinr.com/packages/miniflare)
- [@cloudflare/unenv-preset 44M/wk](https://inlinr.com/packages/@cloudflare/unenv-preset)
- [@cloudflare/vite-plugin 12.2M/wk](https://inlinr.com/packages/@cloudflare/vite-plugin)
- [@cloudflare/workers-utils 6.3M/wk](https://inlinr.com/packages/@cloudflare/workers-utils)
- [@cloudflare/vitest-plugin 2.9M/wk](https://inlinr.com/packages/@cloudflare/vitest-plugin)
- [@cloudflare/config 1.9M/wk](https://inlinr.com/packages/@cloudflare/config)
- [@cloudflare/workers-auth 565.1k/wk](https://inlinr.com/packages/@cloudflare/workers-auth)
- [@cloudflare/cli-shared-helpers 17.1k/wk](https://inlinr.com/packages/@cloudflare/cli-shared-helpers)

Reading releases, release notes and advisories…

Registry facts last checked 18 Nov 2026\. Releases and advisories last read 24 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
