Intel

AIKIDO-2026-395995

@clerk/express is vulnerable to Authentication Bypass

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 3, 2026
July 3, 2026

59

CVE Score

Medium

Authentication Bypass

Are you affected? Scan for Free

TL;DR

@clerk/express provides authentication middleware and helpers for Express applications. The middleware and helpers decide that authentication already ran by checking only for the presence of a req.auth property, a name also used by other authentication libraries such as express-jwt, Passport, and express-openid-connect. When one of those libraries runs first and sets req.auth, clerkMiddleware() and requireAuth() skip Clerk authentication and getAuth() returns the other library's unverified value, so a request can pass authentication checks without a valid Clerk session. The fix brands the handler Clerk installs and trusts only that branded handler, overwriting any foreign req.auth.

How do I fix this?

Upgrade the @clerk/express library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application also uses another authentication library that sets req.auth.

Versions

0.0.1 - 2.1.24

Fixed in 2.1.25

Background info

@clerk/express is vulnerable to Authentication Bypass in versions 0.0.1 - 2.1.24.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea