CVE
CVE-2026-41248
The `createRouteMatcher` function 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. Sessions are not compromised, and no existing user can be impersonated; the bypass only affects the middleware-level gating decision. Apps relying solely on middleware gating via `createRouteMatcher` are affected, as a crafted request can skip middleware checks and reach downstream handlers (API routes, server components, etc.). This vulnerability arises due to an incorrect authorization check in the route matching logic, allowing unauthorized access to protected routes. The impact is significant as it can lead to unauthorized access to sensitive data or functionality if downstream handlers do not implement their own authentication checks. Mitigation involves upgrading to the patched versions of the affected packages or adding server-side auth checks inside route handlers, server compo...
Package Versions Affected
Package Version
patch Availability
No items found.
Automatically patch vulnerabilities without upgrading
Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request
CVSS Version
Severity
Base Score
CVSS Version
Score Vector

C
H
U
-

C
H
U
-

C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Related Resources
No items found.
