@clerk/nextjs
7.10.2 · 17 Nov 2026MIT4.1M / weekRepositoryHomepagenpmAtom feed
Upgrading @clerk/nextjs From 4.23.4 to 4.29.3
29 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Deprecated4.26.2
- Deprecated4.25.4
- Deprecated4.25.4
- Deprecated4.25.4
- Deprecated4.25.3
- Deprecated4.25.0
- Deprecated4.25.0
- Deprecated4.25.0
- Deprecated4.25.0
- Deprecated4.25.0
Security
Fixes 1 advisory affecting 4.23.4
- @clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR) critical · GHSA-q6w5-jg5q-47vg
Release by release
- Fixed
Replace the
Clerk-Backend-SDKheader withUser-Agentin BAPI requests and update it's value to contain both the package name and the package version of the clerk package
- Fixed
4.29.1 – 4.29.22 releases, nothing new or fixed in the notes
- New
Support reading from
__clerk_db_jwtand__dev_sessionthe dev browser jwt in development
- New
- Fixed
Update NextJS quickstart link in error message
- Fixed
- New
Introduce Protect for authorization.
- Fixed
Accept
redirectUrlas an option forauth().protect().
- New
- Fixed
Use dynamic imports in
<ClerkProvider />which you import from@clerk/nextjs.
- Fixed
4.27.5 – 4.27.62 releases, nothing new or fixed in the notes
- Fixed
Drop the introduction of
OrganizationRoleandOrganizationPermissionresources fro BAPI. - Fixed
Ensure that cookies set inside Next.js Middleware are correctly passed through while using
authMiddleware.
- Fixed
100 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.