Intel

AIKIDO-2026-125473

@clerk/backend is vulnerable to Authentication Bypass

Authentication Bypass Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

50

Medium Risk

This Affects:

JS@clerk/backend
2.33.0 - 3.11.6
Fixed in 3.11.7
Are you affected? Scan for Free

TL;DR

authenticateRequestWithTokenInCookie lacks the isMachineJwt() guard that the header path already has, so an M2M or OAuth JWT placed in the __session cookie can pass session verification and produce a signed-in state with a machine identity as userId. That lets requests bypass if (userId)-style authorization checks. The fix rejects those machine tokens on the cookie path and returns a signed-out state, aligning cookie handling with the header-path guard.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application authenticates requests from the __session cookie while also issuing or accepting M2M or OAuth JWTs for the same Clerk instance.

Background info

@clerk/backend is vulnerable to Authentication Bypass in versions 2.33.0 - 3.11.6.

How to fix this

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