Clerk javascript
Clerk: Authorization bypass when combining organization, billing, or reverification checks
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.22.0, < 5.125.10
- >= 6.0.0, < 6.7.5
Fixed in 5.125.10, 6.7.5
- >= 3.0.0, <= 3.47.4
- >= 4.0.0, <= 4.8.2
- >= 2.0.0, <= 2.33.2
- >= 3.0.0, <= 3.2.13
- >= 6.0.0, <= 6.39.2
- >= 7.0.0, <= 7.2.3
- >= 5.9.0, <= 5.61.5
- >= 6.0.0, <= 6.4.2
- >= 1.0.0, <= 1.17.20
- >= 2.0.0, <= 2.0.15
- >= 2.0.0, <= 2.17.10
- >= 3.0.0, <= 3.0.17
- >= 1.0.0, <= 1.13.28
- >= 2.0.0, <= 2.2.4
- >= 2.2.11, <= 2.19.35
- >= 3.0.0, <= 3.2.1
- >= 0.0.1, <= 2.4.12
- >= 3.0.0, <= 3.1.3
- >= 0.0.1, <= 0.29.10
- >= 1.0.0, <= 1.1.3
- >= 1.3.5, <= 2.9.14
- >= 3.0.0, <= 3.1.14
- >= 1.0.42, <= 2.6.30
- >= 3.0.0, <= 3.1.15
- >= 0.1.0, <= 1.7.78
- >= 2.0.0, <= 2.1.5
- >= 0.0.2, <= 0.1.15
Mitigation
Upgrade javascript to 5.125.10 or 6.7.5 or later.
References
- Vendor advisory github.com/clerk/javascript/security/advisorie…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.