@clerk/express
2.1.90 · 14 Nov 2026MIT591.3k / weekRepositoryHomepagenpmAtom feed
2.1.97 is the newest release of 2.x.
In short
3 breaking2 new1 fixed2 internal
- Breaking
Remove deprecated
enableHandshakeoption andreq.authobject-access pattern. - Breaking
Require Node.js 20.9.0 in all packages
- Breaking
Remove
clerkJSUrl,clerkJSVersion,clerkUIUrl, andclerkUIVersionprops from all SDKs. To pin a specific version of@clerk/clerk-js, import theClerkconstructor from@clerk/clerk-jsand pass it toClerkProvidervia theClerkprop. To pin a specific version of@clerk/ui, importuifrom@clerk/uiand pass it via theuiprop. This bundles the modules directly with your application instead of loading them from the CDN.
Security
2 advisories affect 2.0.0; 2.1.6 fixes them
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 2.1.6
- HighClerk: SSRF in the opt-in clerkFrontendApiProxy feature may leak secret keys to unintended hostGHSA-gjxx-92w9-8v8f · 27 Mar 2026Fixed in 2.0.7
Release note
Major Changes
- Breaking
Remove deprecated
enableHandshakeoption andreq.authobject-access pattern.enableHandshakeremovedThis option had no effect and was previously deprecated. Remove it from your
clerkMiddlewarecall:// Before app.use(clerkMiddleware({ enableHandshake: false })); // After app.use(clerkMiddleware());req.authmust now be called as a functionAccessing
req.authas a plain object (legacyclerk-sdk-nodestyle) no longer works. UsegetAuth()instead:// Before const { userId } = req.auth; // After const { userId } = getAuth(req); - Breaking
Require Node.js 20.9.0 in all packages
- Breaking
Remove
clerkJSUrl,clerkJSVersion,clerkUIUrl, andclerkUIVersionprops from all SDKs. To pin a specific version of@clerk/clerk-js, import theClerkconstructor from@clerk/clerk-jsand pass it toClerkProvidervia theClerkprop. To pin a specific version of@clerk/ui, importuifrom@clerk/uiand pass it via theuiprop. This bundles the modules directly with your application instead of loading them from the CDN.
Minor Changes
Add Frontend API proxy support via
frontendApiProxyoption inclerkMiddlewareAdd
/typessubpath export to re-export types from@clerk/shared/typesalong with SDK-specific types. This allows importing Clerk types directly from the SDK package (e.g.,import type { UserResource } from '@clerk/react/types') without needing to install@clerk/typesas a separate dependency.
Patch Changes
Wire
clerkUIVersionoption through all framework packages
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.