@clerk/nextjs
7.10.2 · 17 Nov 2026MIT4.1M / weekRepositoryHomepagenpmAtom feed
4.31.8 is the newest release of 4.x.
In short
4 fixed5 internal
Security
1 advisory affects 4.25.7; 4.29.3 fixes them
- Critical@clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR) GHSA-q6w5-jg5q-47vg · 12 Jan 2024Fixed in 4.29.3
Release note
Patch Changes
Fix an issue where only static routes would be allowed by
publicRoutesprop fromauthMiddleware.Publish packages with npm provenance enabled
Update
<ClerkProvider />to work in client components within the app router. This allows rendering of the provider in client components, previously the pages router provider was being imported and throwing an error.Update imports of
@clerk/sharedto granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime.
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.