Official Clerk JavaScript SDKs: Middleware-based route protection bypass
clerk astro · clerk nextjs · clerk nuxt · clerk shared
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @clerk/nextjs npm |
|
|
| @clerk/nuxt npm |
clerk astro · clerk nextjs · clerk nuxt · clerk shared
| Product | Affected | Fixed in |
|---|---|---|
| @clerk/nextjs npm |
|
|
| @clerk/nuxt npm |
≥ 1.1.0 · < 1.13.28≥ 2.0.0 · < 2.2.2
|
| @clerk/astro npm |
|
|
| @clerk/shared npm |
|
|
Clerk JavaScript is the official JavaScript repository for Clerk authentication. createRouteMatcher in @clerk/nextjs, @clerk/nuxt, and @clerk/astro can be bypassed by certain crafted requests, allowing them to skip middleware gating and reach downstream handlers. This vulnerability is fixed in @clerk/astro 1.5.7, 2.17.10, and 3.0.15; @clerk/nextjs 5.7.6, 6.39.2, and 7.2.1; @clerk/nuxt 1.13.28 and 2.2.2; and @clerk/shared 2.22.1, 3.47.4, anc 4.8.1
From the CVE record · GitHub_M
createRouteMatcher in Clerk's Next.js, Nuxt, and Astro packages can be bypassed by crafted requests. An attacker can skip middleware gating and reach downstream handlers; the input does not specify whether prior authentication or user interaction is required.
Check applications using affected versions of npm @clerk/nextjs, @clerk/nuxt, @clerk/astro, or @clerk/shared.