@clerk/express
2.1.90 · 14 Nov 2026MIT591.3k / weekRepositoryHomepagenpmAtom feed
2.1.97 is the newest release of 2.x.
In short
1 fixed2 internal
Release note
Patch Changes
Fix an authentication bypass where a
req.authvalue set by another library (such asexpress-jwt, Passport, orexpress-openid-connect) causedclerkMiddleware()andrequireAuth()to silently skip Clerk authentication, andgetAuth()to return the unverified foreign value. Clerk now brands thereq.authhandler it installs and only trusts that handler:clerkMiddleware()authenticates the request and overwrites a foreignreq.auth(logging a warning when it does), andgetAuth()throws its "middleware required" error instead of reading foreign data.
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.