wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
3.114.17 is the newest release of 3.x.
In short
1 new7 fixed2 internal
Security
3 advisories affect 3.11.0; 3.114.17 fixes them
- CriticalArbitrary remote code execution within `wrangler dev` Workers sandboxGHSA-f8mp-x433-5wpf · 3 Jan 2024Fixed in 3.19.0
- HighWrangler affected by OS Command Injection in `wrangler pages deploy`GHSA-36p8-mvp6-cv38 · 21 Jan 2026Fixed in 3.114.17
- ModerateArbitrary remote file read in Wrangler dev serverGHSA-cfph-4qqh-w828 · 3 Jan 2024Fixed in 3.19.0
Release note
Minor Changes
Support partial bundling with configurable external modules
Setting
find_additional_modulestotruein your configuration file will now instruct Wrangler to look for files in
yourbase_dirthat match your configuredrules, and deploy them as unbundled, external modules with your Worker.base_dirdefaults to the directory containing yourmainentrypoint.Wrangler can operate in two modes: the default bundling mode and
--no-bundlemode. In bundling mode, dynamic imports
(e.g.await import("./large-dep.mjs")) would be bundled into your entrypoint, making lazy loading less effective.
Additionally, variable dynamic imports (e.g.await import(`./lang/${language}.mjs`)) would always fail at runtime,
as Wrangler would have no way of knowing which modules to upload. The--no-bundlemode sought to address these issues
by disabling Wrangler's bundling entirely, and just deploying code as is. Unfortunately, this also disabled Wrangler's
code transformations (e.g. TypeScript compilation,--assets,--test-scheduled, etc).With this change, we now additionally support partial bundling. Files are bundled into a single Worker entry-point file
unlessfind_additional_modulesistrue, and the file matches one of the configuredrules. See
developers.cloudflare.com/workers/wrangler/bund… for more details and examples.
Patch Changes
Ensure that additional modules appear in the out-dir
When using
find_additional_modules(orno_bundle) we find files that
will be uploaded to be deployed alongside the Worker.Previously, if an
outDirwas specified, only the Worker code was output
to this directory. Now all additional modules are also output there too.Generate valid source maps with
wrangler pages devon macOSOn macOS,
wrangler pages devpreviously generated source maps with an
incorrect number of../s in relative paths. This change ensures paths are
always correct, improving support for breakpoint debugging.Respect the options.local value in unstable_dev (it was being ignored)
Allow
__STATIC_CONTENT_MANIFESTmodule to be imported anywhere__STATIC_CONTENT_MANIFESTcan now be imported in subdirectories when--no-bundleorfind_additional_modulesare enabled.Log more detail about tokens after authentication errors
Fixed
pages devcrashing and leaving port open when building a worker script failsWe no longer infer pathnames from route patterns as the host
During local development, inside your worker, the host of
request.urlis inferred from theroutesin your config.Previously, route patterns like "*/some/path/name" would infer the host as "some". We now handle this case and determine we cannot infer a host from such patterns.
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.