Skip to main content

Clerk JavaScript SDKs CVE-2026-42349

HIGH
Improper Check for Unusual or Exceptional Conditions (CWE-754)
2026-04-30 https://github.com/clerk/javascript GHSA-w24r-5266-9c3c
7.6
CVSS 4.0 · Vendor: https://github.com/clerk/javascript
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid user credentials
  2. Delivery
    Authenticate to application
  3. Exploit
    Trigger action gated by combined auth check
  4. Execution
    Satisfy one condition but not all
  5. Persist
    Authorization predicate incorrectly returns true
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm @clerk/astro fix: 2.17.11, 3.0.18
npm @clerk/backend fix: 2.33.3, 3.2.14
npm @clerk/chrome-extension fix: 2.9.15, 3.1.15
npm @clerk/clerk-expo fix: 2.19.36
npm @clerk/clerk-js fix: 5.125.10, 6.7.5
npm @clerk/clerk-react fix: 5.61.6
npm @clerk/expo fix: 3.2.2
npm @clerk/express fix: 1.7.79, 2.1.6
npm @clerk/fastify fix: 2.6.31, 3.1.16
npm @clerk/hono fix: 0.1.16
npm @clerk/nextjs fix: 6.39.3, 7.2.4
npm @clerk/nuxt fix: 1.13.29, 2.2.5
npm @clerk/react fix: 6.4.3
npm @clerk/react-router fix: 2.4.13, 3.1.4
npm @clerk/shared fix: 3.47.5, 4.8.3
npm @clerk/tanstack-react-start fix: 0.29.11, 1.1.4
npm @clerk/vue fix: 1.17.21, 2.0.16

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

Vendor (https://github.com/clerk/javascript) PRIMARY 7.6 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 11, 2026 - 17:22 NVD
7.6 (HIGH)
CVE Published
Apr 30, 2026 - 18:20 nvd
HIGH

DescriptionCVE.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.

ts
// 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:

ts
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:

ts
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:

ts
// 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

pkg:npm/@clerk_shared
pkg:npm/@clerk_shared
pkg:npm/@clerk_backend
pkg:npm/@clerk_backend
pkg:npm/@clerk_nextjs
pkg:npm/@clerk_nextjs
pkg:npm/@clerk_clerk-js
pkg:npm/@clerk_clerk-js
pkg:npm/@clerk_clerk-react
pkg:npm/@clerk_react
pkg:npm/@clerk_vue
pkg:npm/@clerk_vue
pkg:npm/@clerk_astro
pkg:npm/@clerk_astro
pkg:npm/@clerk_nuxt
pkg:npm/@clerk_nuxt
pkg:npm/@clerk_clerk-expo
pkg:npm/@clerk_expo
pkg:npm/@clerk_react-router
pkg:npm/@clerk_react-router
+ 9 more
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy