@clerk/nextjs
7.10.2 · 17 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
Your version
6.39.9 is the newest release of 6.x.
In short
1 new4 internal
Security
3 advisories affect 6.15.1; 6.39.3 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 6.39.2
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 6.39.3
- High@clerk/backend Performs Insufficient Verification of Data AuthenticityGHSA-9mp4-77wg-rwx9 · 9 Jul 2025Fixed in 6.23.3
Release note
Patch Changes
Add support for webhook verification with Next.js Pages Router.
// Next.js Pages Router import type { NextApiRequest, NextApiResponse } from 'next'; import { verifyWebhook } from '@clerk/nextjs/webhooks'; export const config = { api: { bodyParser: false, }, }; export default async function handler(req: NextApiRequest, res: NextApiResponse) { try { const evt = await verifyWebhook(req); // Handle webhook event res.status(200).json({ received: true }); } catch (err) { res.status(400).json({ error: 'Webhook verification failed' }); } } // tRPC import { verifyWebhook } from '@clerk/nextjs/webhooks'; const webhookRouter = router({ webhook: publicProcedure.input(/** schema */).mutation(async ({ ctx }) => { const evt = await verifyWebhook(ctx.req); // Handle webhook event return { received: true }; }), });
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.