Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

2.21.1

21 Mar 2024Where it was published

2.21.3 is the newest release of 2.x.

npm marks 2.21.1 as deprecated: Wrangler v2 is no longer supported. Please upgrade to Wrangler v4

In short

1 fixed

Security

1 advisory affects 2.21.1; 3.114.17 fixes them

Release note

Patch Changes

  • Ignore OPTIONS requests in Wrangler's oauth server

    In Chrome v123, the auth requests from the browser back to wrangler now first include a CORS OPTIONS preflight request before the expected GET request. Wrangler was able to successfully complete the login with the first (OPTIONS) request, and therefore upon the second (GET) request, errored because the token exchange had already occured and could not be repeated.

    Wrangler now stops processing the OPTIONS request before completing the token exchange and only proceeds on the expected GET request.

    If you see a ErrorInvalidGrant in a previous wrangler version when running wrangler login, please try upgrading to this version or later.

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.