@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
4.48.3 is the newest release of 4.x.
In short
1 new2 fixed
Security
2 advisories affect 4.1.0; 4.8.3 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 4.8.1
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 4.8.3
Release note
Minor Changes
Prevent modification of immutable attributes in UserProfile
Patch Changes
Narrow the error conditions that trigger the unauthenticated flow (sign-out) to only high-confidence authentication failures (401, 422). Previously, all 4xx errors — including 429 rate limits — were treated as auth failures, which could sign users out during transient rate limiting. Non-auth errors from
setActivenow propagate to the caller instead of being silently swallowed.Add
typesVersionsfallback so that@clerk/shared/typesresolves correctly undermoduleResolution: "node"in TypeScript.
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.