CVE-2026-42349: CWE-754: Improper Check for Unusual or Exceptional Conditions in clerk javascript
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.
AI Analysis
Technical Summary
The vulnerability in Clerk JavaScript SDKs involves improper checking of unusual or exceptional conditions (CWE-754) and insufficient authorization (CWE-863) in combined authorization predicates such as has() and auth.protect(). When these predicates combine reverification with role, permission, feature, or plan checks, or combine billing checks with role or permission checks, the functions may erroneously return true, granting access to users who do not meet all required conditions. This flaw exists in multiple Clerk SDK packages including @clerk/shared, @clerk/nextjs, and @clerk/backend. The vulnerability is fixed in versions 5.125.10 and 6.7.5 of @clerk/clerk-js.
Potential Impact
An attacker with limited privileges might bypass combined authorization checks and perform actions that should be restricted, potentially leading to unauthorized access to gated features or operations. The CVSS 4.0 score of 7.6 (high severity) reflects the network attack vector, low attack complexity, and the requirement for privileges but no user interaction. There are no reports of active exploitation in the wild.
Mitigation Recommendations
Upgrading to @clerk/clerk-js versions 5.125.10 or 6.7.5 or later fully addresses this vulnerability. Users of affected versions should apply these updates promptly. Since this is a client-side library, patching the dependency in applications is required. No vendor advisory explicitly states otherwise, so patching is recommended.
CVE-2026-42349: CWE-754: Improper Check for Unusual or Exceptional Conditions in clerk javascript
Description
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.
CVSS v4.0
Score 7.6high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Clerk JavaScript SDKs involves improper checking of unusual or exceptional conditions (CWE-754) and insufficient authorization (CWE-863) in combined authorization predicates such as has() and auth.protect(). When these predicates combine reverification with role, permission, feature, or plan checks, or combine billing checks with role or permission checks, the functions may erroneously return true, granting access to users who do not meet all required conditions. This flaw exists in multiple Clerk SDK packages including @clerk/shared, @clerk/nextjs, and @clerk/backend. The vulnerability is fixed in versions 5.125.10 and 6.7.5 of @clerk/clerk-js.
Potential Impact
An attacker with limited privileges might bypass combined authorization checks and perform actions that should be restricted, potentially leading to unauthorized access to gated features or operations. The CVSS 4.0 score of 7.6 (high severity) reflects the network attack vector, low attack complexity, and the requirement for privileges but no user interaction. There are no reports of active exploitation in the wild.
Mitigation Recommendations
Upgrading to @clerk/clerk-js versions 5.125.10 or 6.7.5 or later fully addresses this vulnerability. Users of affected versions should apply these updates promptly. Since this is a client-side library, patching the dependency in applications is required. No vendor advisory explicitly states otherwise, so patching is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T13:26:14.515Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a028783cbff5d86108b8fef
Added to database: 05/12/2026, 01:50:59 UTC
Last enriched: 05/19/2026, 09:19:51 UTC
Last updated: 07/01/2026, 20:51:20 UTC
Views: 92
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.