@clerk/astro
4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed
Your version
2.17.18 is the newest release of 2.x.
In short
2 new3 internal
Security
2 advisories affect 2.6.0; 2.17.11 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 2.17.10
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 2.17.11
Release note
Minor Changes
Update
useAuthto handle pending sessions as signed-out by default, with opt-out viauseAuth({ treatPendingAsSignedOut: false })orclerk({ treatPendingAsSignedOut: false })
Patch Changes
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.