@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Upgrading @clerk/shared From 3.47.1 to 3.48.1
9 releases in betweennotes for 8
Counted from 8 of 9 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking3.47.2
Security
Fixes 2 advisories affecting 3.47.1
- 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
- 3.47.6
Bump
js-cookieto3.0.7to address GHSA-qjx8-664m-686j.
Release by release
- Fixed
Reject JWTs of another category, such as JWT templates, M2M tokens and OIDC ID tokens, where a session or handshake token is expected.
authenticateRequest()now returns a signed-out state with reasontoken-type-mismatchfor such a token in theAuthorizationheader or__sessioncookie. Tokens with no category tag are unaffected.
- Fixed
- New
Internal improvements to Clerk Protect. No action is required.
- New
- Fixed
Fail fast when the Clerk Frontend API (FAPI) is slow or unreachable during load. The client request and the load-recovery token mint are now bounded by a timeout, and the timed-out client request is aborted instead of being left in flight. A cold
Clerk.load()renders identity from a freshly minted session token (falling back to the session cookie if the mint fails) in seconds instead of hanging while retries run. After a degraded load, the client is re-fetched in the background without a time limit, so a slow-but-healthy origin recovers full client data (user profile, other sessions) without a reload. Also fixes hooks likeuseUser()keeping the cookie-derived stub user after full user data arrives. Adds atimeLimitutility to@clerk/shared/utilsthat optionally aborts anAbortControlleron timeout.
- Fixed
- New
Add
oiat(original_issued_at) field toJwtHeadertype for Session Minter monotonic token freshness checks. - Fixed
Send previous session token on
/tokensrequests to support Session Minter edge token minting.
- New
- Security
Bump
js-cookieto3.0.7to address GHSA-qjx8-664m-686j.
- Security
3.47.5no release note
- Fixed
Normalize URL paths in
createPathMatcherto prevent route protection bypass
- Fixed
- New
Add optional
intentparameter tosession.touch()to indicate why the touch was triggered (focus, session switch, or org switch). This enables the backend to skip expensive client piggybacking for focus-only touches.
- 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.