@clerk/nextjs
7.10.2 · 17 Nov 2026MIT4.1M / weekRepositoryHomepagenpmAtom feed
4.31.8 is the newest release of 4.x.
In short
3 deprecated2 new5 internal
- Deprecated
CLERK_API_KEY - Deprecated
CLERK_FRONTEND_API - Deprecated
NEXT_PUBLIC_CLERK_FRONTEND_API
Security
1 advisory affects 4.25.4; 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
Warn about environment variables deprecations:
CLERK_API_KEYCLERK_FRONTEND_APINEXT_PUBLIC_CLERK_FRONTEND_API
Introduce a new property on the core Clerk singleton,
sdkMetadata. This will be populated by each host SDK. This metadata will be used to make logging and debugging easier.Introduce new
*EmailLink*helpers that will replace the*MagicLink*helpers.Also marked all the
*MagicLink*as deprecated using JSDocs.
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.