wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
4.167.0 is the newest release of 4.x.
In short
6 fixed
Security
1 advisory affects 4.28.1; 4.59.1 fixes them
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 4.59.1
Release note
Patch Changes
Update
maybeStartOrUpdateRemoteProxySessionconfig argument (to allow callers to specify an environment)Before this change
maybeStartOrUpdateRemoteProxySessioncould be called with either the path to a wrangler config file or the configuration of a worker. The former override however did not allow the caller to specify an environment, so themaybeStartOrUpdateRemoteProxySessionAPI has been updated so that in the wrangler config case an object (with the path and a potential environment) needs to be passed instead.For example, before callers could invoke the function in the following way
await maybeStartOrUpdateRemoteProxySession(configPath);
note that there is no way to tell the function what environment to use when parsing the wrangle configuration.
Now callers will instead call the function in the following way:
await maybeStartOrUpdateRemoteProxySession({ path: configPath, environment: targetEnvironment, });note that now a target environment can be specified.
Fix
getPlatformProxynot taking into account the potentially specified environment for remote bindingsFix
startWorkernot respectingauthoptions for remote bindingsfix
startWorkercurrently not taking into account theauthfield
that can be provided as part of thedevoptions when used in conjunction
with remote bindingsexample:
Given the following
import { unstable_startWorker } from "wrangler"; const worker = await unstable_startWorker({ entrypoint: "./worker.js", bindings: { AI: { type: "ai", experimental_remote: true, }, }, dev: { experimentalRemoteBindings: true, auth: { accountId: "<ACCOUNT_ID>", apiToken: { apiToken: "<API_TOKEN>", }, }, }, }); await worker.ready;wranglerwill now use the provided<ACCOUNT_ID>and<API_TOKEN>to integrate with
the remote AI binding instead of requiring the user to authenticate.Strip ANSI escape codes from log files to improve readability and parsing
Validate container configuration against account limits in wrangler to give early feedback to the user
Fix incorrect TypeScript type for AI binding in the
startWorkerAPI
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.