Clerk JavaScript SDKs CVE-2026-42349
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid user credentials
-
DeliveryAuthenticate to application
-
ExploitTrigger action gated by combined auth check
-
ExecutionSatisfy one condition but not all
-
PersistAuthorization predicate incorrectly returns true
-
ImpactExecute privileged action
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Unusual condition handling
|
| Exploitation Conditions | Exploitation requires the target application to use Clerk SDK and implement combined authorization checks via has() or auth.protect() with multiple parameters. Specifically, the application must call these functions with either: (1) reverification combined with role, permission, feature, or plan; or (2) billing checks (feature or plan) combined with role or permission. The attacker must already possess an authenticated user account within the application. Applications using only single-condition authorization checks (e.g., await auth.protect({ permission: 'org:X' }) alone) or combining checks via the callback form (auth.protect(has => has({ permission: 'org:X' }) && has({ reverification: 'strict' }))) are not vulnerable. The vulnerability is limited to the authorization decision layer; it does not bypass authentication, session management, or token verification. Affected applications are most likely enterprise SaaS platforms with role-based access control and tiered billing, where developers logically combine multiple authorization dimensions in a single predicate for code conciseness. |
| Impact | This is a high-priority authorization bypass despite the absence of CVSS scoring. The vulnerability affects a narrow but critical use case: applications combining multiple authorization dimensions, which is common in enterprise SaaS applications with role-based access control and tiered billing. Risk is elevated because the affected code pattern is explicitly recommended in Clerk documentation, meaning production applications are likely to contain vulnerable calls. The bypass allows privilege escalation within the application's authorization model - for example, a user with role 'org:member' but no 'premium' feature could execute actions requiring both. However, the impact is constrained: sessions are not compromised, users cannot impersonate others, and authentication remains intact. The vulnerability requires authenticated access (attackers must have valid user accounts) and application developers must have implemented the specific vulnerable call pattern. Single-condition checks and the callback form of auth.protect() are not affected, limiting the attack surface. No EPSS score or CISA KEV listing indicates this is not yet widely exploited, but the vendor advisory's explicit code examples make exploitation trivial for attackers with source code access or knowledge of common Clerk usage patterns. Patches are available with drop-in compatibility, making remediation low-friction. Organizations should prioritize upgrade based on whether their code contains combined authorization checks (grep for has() and auth.protect() with multiple parameters). |
| Exploit ScenarioDerived | An authenticated user with role 'org:member' in a multi-tenant SaaS application attempts to delete organization settings, an action that requires both 'org:admin' permission and strict reverification (recent password re-entry). The application gates this action with await auth.protect({ permission: 'org:settings:delete', reverification: 'strict' }). Due to the bypass, the predicate returns true if the user satisfies either condition rather than both. If the user recently re-authenticated (satisfying reverification) but lacks the required permission, the check passes and the deletion proceeds. Similarly, in a billing-gated scenario, a user on the free tier who holds admin role could bypass a check like has({ permission: 'org:admin', feature: 'premium' }) because their admin role alone triggers the incorrect true result, granting access to premium-only features. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 30, 2026
Authorization bypass in Clerk JavaScript SDKs allows authenticated users to proceed past combined authorization checks they should fail. When developers use has() or auth.protect() with multiple authorization dimensions (e.g., role + reverification, permission + billing feature, or billing plan + permission), the predicate incorrectly returns true for users who satisfy only a subset of the required conditions. Sessions and authentication remain secure, but gated actions may execute for under-privileged users. Patches released across all affected SDK packages (Core 2 and Core 3) with no API changes. No public exploit code identified at time of analysis, but the vulnerability is straightforward to trigger in production code patterns explicitly outlined in the vendor advisory.
RemediationAI
Upgrade to the patched version of the Clerk framework package used in your application. For @clerk/shared, upgrade to version 3.47.5 (if on Core 2) or 4.8.3 (if on Core 3). For @clerk/backend, upgrade to 2.33.3 or 3.2.14. For @clerk/nextjs and other framework packages, upgrade to the latest patch release on your current major version line as specified in the vendor advisory at https://github.com/clerk/javascript/security/advisories/GHSA-w24r-5266-9c3c. Patches are API-compatible drop-in replacements requiring no code changes. If you pin @clerk/clerk-js directly (rather than loading from CDN), upgrade it to the patched version. If immediate upgrade is not feasible, implement the workaround by refactoring combined has() or auth.protect() calls into sequential single-condition checks, denying access if any individual check fails. For example, replace await auth.protect({ permission: 'org:X', reverification: 'strict' }) with two calls: await auth.protect({ reverification: 'strict' }); followed by await auth.protect({ permission: 'org:X' }). This workaround introduces additional latency (multiple predicate evaluations) but closes the bypass by forcing each condition to be evaluated independently. Audit your codebase for has() and auth.protect() calls with multiple parameters (role, permission, feature, plan, reverification) to identify affected code paths before applying the upgrade or workaround.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 17 packages in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Clerk provides authentication and authorization SDKs for JavaScript frameworks (Next.js, React, backend Node.js). The authorization system allows developers to gate actions using predicates like has() and auth.protect(), which accept parameters for role-based access control (role, permission), billing tier (feature, plan), and user reverification (strict reauth checks). The vulnerability lies in the authorization logic within @clerk/shared (createCheckAuthorization function), which is consumed by framework-specific packages like @clerk/nextjs and @clerk/backend. CWE-754 (Improper Check for Unusual or Exceptional Conditions) reflects the root cause: the code failed to properly validate combined authorization dimensions. When multiple conditions are passed in a single call, the logic short-circuits to true if any single condition is satisfied rather than requiring all conditions to pass. A secondary bypass in @clerk/nextjs silently discards authorization parameters when unauthenticatedUrl, unauthorizedUrl, or token keys are present in the same argument object. The fix resides in @clerk/shared and propagates through dependent framework packages via the npm dependency tree.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/clerk/javascript) · only source for this CVE.
CVSS VectorVendor: https://github.com/clerk/javascript
Lifecycle Timeline
2DescriptionCVE.org
Summary
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.
Sessions are not compromised and no existing user can be impersonated. The bypass is limited to the authorization decision returned by the predicate. clerkMiddleware continues to authenticate requests correctly, auth() reflects the real authentication state, and token verification is unaffected.
Who is affected
All apps that combine more than one authorization dimension in a single has() or auth.protect() call should upgrade to the patched versions. Patches are drop-in with no API changes. The information below describes the scope of the bypass and helps developers understand whether their apps are potentially affected, but is not a reason to delay the upgrade.
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.
// Reverification combined with role / permission / feature / plan
await auth.protect({ permission: 'org:settings:delete', reverification: 'strict' });
const canAct = has({ role: 'org:admin', reverification: 'strict' });
// Billing (feature / plan) combined with role / permission
const canAct = has({ permission: 'org:admin', feature: 'premium' });Single-condition checks are not affected and continue to fail closed as expected:
await auth.protect({ permission: 'org:settings:delete' });
has({ reverification: 'strict' });The callback form of auth.protect is not affected unless the callback itself invokes one of the affected shapes:
await auth.protect(has => has({ permission: 'org:X' }) && has({ reverification: 'strict' }));App patterns that rely only on single-condition checks, or that combine them via the callback form, are unaffected. Authentication, session state, and token verification continue to work correctly regardless of this bypass.
@clerk/shared is usually not imported directly in application code, but the fix lives there and reaches an app through its framework package. If developers import createCheckAuthorization from @clerk/shared directly, their apps are also affected. Run npm why @clerk/shared (or the app's package manager's equivalent) to check the installed version.
Additional auth.protect() bypass
A second, related bypass lives in @clerk/nextjs: auth.protect() silently discarded authorization params (role, permission, feature, plan, reverification) whenever the same argument object also contained unauthenticatedUrl, unauthorizedUrl, or token.
Recommended actions
Upgrade to the latest patch release of the consuming app's framework package on its current major. Both Core 2 and Core 3 release lines have patches. See the "Affected packages" section above for the exact vulnerable ranges and patched versions per package.
If a consuming app pins @clerk/clerk-js directly, upgrade it to the patched version. Most apps load @clerk/clerk-js from Clerk's CDN through their framework package and will receive the fix automatically, with no upgrade step required.
Workaround
If developers cannot upgrade immediately, split combined has() or auth.protect() calls into sequential single-condition checks:
// Replace
await auth.protect({ permission: 'org:X', reverification: 'strict' });
// With
await auth.protect({ reverification: 'strict' });
await auth.protect({ permission: 'org:X' });Each single-condition check fails closed as expected, so evaluating them independently and denying if either fails produces the correct result.
Timeline
This issue was reported on 18 APR 2026, patched on 22 APR 2026, and publicly disclosed on 22 APR 2026.
Thanks to AISafe for the responsible disclosure of this vulnerability.
Executive ViewAI
Clerk JavaScript SDKs contain an authorization bypass flaw that allows authenticated users to circumvent multi-factor authorization checks (e.g., role + reverification), enabling under-privileged users to access gated actions they should not reach. Organizations relying on Clerk's combined authorization controls for access decisions face immediate risk of privilege escalation in production environments without patch deployment.
Pending vendor patch availability confirmation: Implement server-side authorization re-validation for all gated actions that currently rely on has() or auth.protect() with combined conditions; decompose multi-dimensional checks into sequential, individually-verified gates; add audit logging to flag access to sensitive functions by users with incomplete authorization profiles.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
GHSA-w24r-5266-9c3c
NVD
CVE.org
EPSS
VulDB
Exploit-DB