@clerk/clerk-react
5.61.3 · 27 Feb 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed
5.61.12 is the newest release of 5.x.
In short
4 new1 fixed2 internal
Security
1 advisory affects 5.26.0; 5.61.6 fixes them
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 5.61.6
Release note
Minor Changes
Update
useSessionto handle pending sessions as signed-out by default, with opt-out viauseSession({ treatPendingAsSignedOut: false })or<ClerkProvider treatPendingAsSignedOut={false} />Update
useAuthto handle pending sessions as signed-out by default, with opt-out viauseAuth({ treatPendingAsSignedOut: false })or<ClerkProvider treatPendingAsSignedOut={false} />
Patch Changes
Fixes an issue where a race condition was caused by triggering navigations during a call to
setActive.Introduce
clerk.__internal_openCheckout()andclerk.__internal_closeCheckout()methods and remove<Checkout />from within the<PricingTable />component.Introduce
treatPendingAsSignedOutprop to client control components// Children node only mounts when session is active // Example: Organization selection must be completed if enforced <SignedIn> <p>You have selected an organization!</p> </SignedIn>
// Children node mounts for both active and pending session <SignedIn treatPendingAsSignedOut={false}> <p>You might not have an organization selected</p> </SignedIn>// Children node only mounts when session is active // Example: Organization selection must be completed if enforced <Protect> <p>You have selected an organization!</p> </Protect>
// Children node mounts for both active and pending session <Protect treatPendingAsSignedOut={false}> <p>You might not have an organization selected</p> </Protect>
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.