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 new2 fixed
Security
3 advisories affect 2.20.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 support for the undocumented
_worker.js/directory in PagesAdd support for placement in wrangler config
Allows a
placementobject in the wrangler config with a mode ofofforsmartto configure Smart placement. Enabling Smart Placement can be done in yourwrangler.tomllike:[placement] mode = "smart"
Support sourcemaps in DevTools
Intercept requests from DevTools in Wrangler to inject sourcemaps and enable folders in the Sources Panel of DevTools. When errors are thrown in your Worker, DevTools should now show your source file in the Sources panel, rather than Wrangler's bundled output.
Patch Changes
Do not render "value of stdout.lastframe() is undefined" if the output is an empty string
Fixes #2907
Fix pages building not taking into account the nodejs_compat flag (and improve the related error message)
Added output for tail being in "sampling mode"
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.