@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Upgrading @clerk/shared From 4.0.0 to 4.1.0
1 release in betweenevery note read
Security
2 advisories still affect 4.1.0
- Official Clerk JavaScript SDKs: Middleware-based route protection bypasscritical · GHSA-vqx2-fgx2-5wq9
- Clerk has an authorization bypass when combining organization, billing, or reverification checkshigh · GHSA-w24r-5266-9c3c
Upgrading to 4.8.3 clears them.
Release by release
- New
Add
typesVersionsfallback so that@clerk/shared/typesresolves correctly undermoduleResolution: "node"in TypeScript. - Fixed
Prevent modification of immutable attributes in UserProfile
- Fixed
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.
- New
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.