@clerk/astro
4.1.27 · 18 Nov 2026MIT46.5k / weekRepositoryHomepagenpmAtom feed
2.17.18 is the newest release of 2.x.
In short
2 new1 fixed3 internal
Security
2 advisories affect 2.5.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
Introduce a
verifyWebhook()function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification usingSvixand is now available across all backend and fullstack SDKs.To get started, install
svix, which Clerk uses to verify its webhooks:npm install svix
Then in your webhook route handler, import
verifyWebhook()from the Astro SDK:// pages/api/webhooks.ts import { verifyWebhook } from '@clerk/astro/webhooks'; export const POST = ({ request }) => { try { const evt = await verifyWebhook(request); // Do something with payload const { id } = evt.data; const eventType = evt.type; console.log(`Received webhook with ID ${id} and event type of ${eventType}`); console.log('Webhook payload:', body); return new Response('Webhook received', { status: 200 }); } catch (err) { console.error('Error: Could not verify webhook:', err); return new Response('Error: Verification error', { status: 400, }); } };For more information on how to sync Clerk data to your app with webhooks, see our guide.
Redirect to tasks on
auth.protectandauth.redirectToSignIn
Patch Changes
Remove telemtry event from
clerkMiddleware().
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.