Auth bypass in @Clerk Astro
CVE-2026-42349
Clerk JavaScript is the official JavaScript repository for Clerk authentication. has(), auth.protect(), and related authorization predicates in @clerk/shared, @clerk/nextjs, @clerk/backend, and other framework SDKs can return true for certain combined authorization checks when the result should be false, allowing a gated action to proceed for a user who does not satisfy the full set of requested conditions. This call shape can be bypassed if certain conditions are met: a has() or auth.protect() call that combines a reverification check with any of role, permission, feature, or plan, or that combines a billing check (feature or plan) with a role or permission check. This vulnerability is fixed in @clerk/clerk-js 5.125.10 and 6.7.5.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.002, 15.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- @Clerk Astro — versions >= 2.0.0, <= 2.17.10, >= 3.0.0, <= 3.0.17
- @Clerk Backend — versions >= 2.0.0, <= 2.33.2, >= 3.0.0, <= 3.2.13
- @Clerk Chrome-Extension — versions >= 1.3.5, <= 2.9.14, >= 3.0.0, <= 3.1.14
- @Clerk Clerk-Expo — versions >= 2.2.11, <= 2.19.35
- @Clerk Clerk-React — versions >= 5.9.0, <= 5.61.5
- @Clerk Expo — versions >= 3.0.0, <= 3.2.1
- @Clerk Express — versions >= 0.1.0, <= 1.7.78, >= 2.0.0, <= 2.1.5
- @Clerk Fastify — versions >= 1.0.42, <= 2.6.30, >= 3.0.0, <= 3.1.15
- @Clerk Hono — versions >= 0.0.2, <= 0.1.15
- @Clerk Nextjs — versions >= 6.0.0, <= 6.39.2, >= 7.0.0, <= 7.2.3
Weakness classification (CWE)
References
- https://github.com/clerk/javascript/security/advisories/GHSA-w24r-5266-9c3c (Mitigation, Vendor Advisory)