Packages

@clerk/nextjs

7.10.2 · 17 Nov 2026MIT4.1M / weekRepositoryHomepagenpmAtom feed

Your version

5.2.5

23 Jul 2024Where it was published

5.7.6 is the newest release of 5.x.

In short

3 fixed4 internal

Security

1 advisory affects 5.2.5; 5.7.6 fixes them

Release note

Patch Changes

  • Fixes regression on @clerk/nextjs/server (introduced on #3758) where server-only module was being resolved in runtimes without react-server available, such as getAuth on getServerSideProps.

  • Return build-time error if auth and currentUser server-side helpers are imported into Client Components.

  • Stop throwing "Error: Clerk: auth() was called but Clerk can't detect usage of authMiddleware()." errors when no user action is needed by removing sourcemaps for all Clerk-bundled server actions.

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.