@clerk/nextjs
7.10.2 · 17 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @clerk/nextjs From 5.7.6 to 6.0.0
1 release in betweenevery note read
- 4
- changes to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
Security
2 advisories still affect 6.0.0
- 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
Upgrading to 6.39.3 clears them.
Release by release
- Breaking
Stop
<ClerkProvider>from opting applications into dynamic rendering. A new prop,<ClerkProvider dynamic>can be used to opt-in to dynamic rendering and make auth data available during server-side rendering. The RSCauth()helper should be preferred for accessing auth data during dynamic rendering. - Breaking
@clerk/nextjs: Converting auth() and clerkClient() interfaces to be async
- Breaking
Support
unstable_rethrowinsideclerkMiddleware. - Breaking
Removes deprecated APIs:
authMiddleware(),redirectToSignIn(), andredirectToSignUp(). See the migration guide to learn how to update your usage. - New
Bug fix: Correctly redirect to sign in page in Next 15.
- New
Add experimental support for new UI components
- Breaking
4 internal lines (docs, tests, tooling) left out.
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.