@clerk/nextjs
7.10.2 · 17 Nov 2026MIT4.1M / weekRepositoryHomepagenpmAtom feed
4.31.8 is the newest release of 4.x.
In short
5 deprecated1 new4 internal
- Deprecated
CLERK_JS_VERSIONenvironment variable - Deprecated
CLERK_API_KEYenvironment variable - Deprecated
NEXT_PUBLIC_CLERK_FRONTEND_APIenvironment variable - Deprecated
withClerkMiddleware - Deprecated
withServerSideAuth
Security
1 advisory affects 4.25.0; 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
Minor Changes
Add the
use clientdirective in@clerk/sharedto make the package compatible with an RSC environment.Remove several helpers from
@clerk/nextjsand import them from@clerk/sharedinstead.
Patch Changes
Apply deprecation warnings for
@clerk/nextjs:CLERK_JS_VERSIONenvironment variableCLERK_API_KEYenvironment variableNEXT_PUBLIC_CLERK_FRONTEND_APIenvironment variablewithClerkMiddlewarewithServerSideAuth
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.