Loading...
Skip to main content

CVE-2026-42349 — Vulnerability in @clerk/expo — CVE Details

HIGH

Clerk has an authorization bypass when combining organization, billing, or reverification checks

Published April 30, 2026Updated September 10, 2026Source: osv

Summary

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

Advisory Timeline

  • First published April 30, 2026 (165 days ago).
  • Last revised September 10, 2026 — 132 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

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

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (29)

Affects 1 ecosystem: npm (17).

PackageEcosystemAffectedFixed In
@clerk/expo
npm
All versions3.2.2
@clerk/backend
npm
All versions3.2.14
@clerk/chrome-extension
npm
All versions2.9.15
@clerk/express
npm
All versions2.1.6
@clerk/clerk-js
npm
All versions6.7.5
@clerk/vue
npm
All versions1.17.21
@clerk/clerk-react
npm
All versions5.61.6
@clerk/clerk-expo
npm
All versions2.19.36
@clerk/tanstack-react-start
npm
All versions0.29.11
@clerk/astro
npm
All versions2.17.11
@clerk/react
npm
All versions6.4.3
@clerk/hono
npm
All versions0.1.16
@clerk/backend
npm
All versions2.33.3
@clerk/react-router
npm
All versions2.4.13
@clerk/nextjs
npm
All versions6.39.3
@clerk/clerk-js
npm
All versions5.125.10
@clerk/fastify
npm
All versions3.1.16
@clerk/shared
npm
All versions3.47.5
@clerk/tanstack-react-start
npm
All versions1.1.4
@clerk/express
npm
All versions1.7.79
@clerk/chrome-extension
npm
All versions3.1.15
@clerk/vue
npm
All versions2.0.16
@clerk/nuxt
npm
All versions1.13.29
@clerk/fastify
npm
All versions2.6.31
@clerk/nextjs
npm
All versions7.2.4
@clerk/react-router
npm
All versions3.1.4
@clerk/nuxt
npm
All versions2.2.5
@clerk/shared
npm
All versions4.8.3
@clerk/astro
npm
All versions3.0.18

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-42349?
Clerk has an authorization bypass when combining organization, billing, or reverification checks This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-42349?
CVE-2026-42349 affects @clerk/expo, @clerk/backend and @clerk/chrome-extension (and 14 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-42349 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-w24r-5266-9c3c

Related CVEs

  • CVE-2026-41248
    CRITICAL

    Official Clerk JavaScript SDKs: Middleware-based route protection bypass

  • CVE-2025-53548
    HIGH

    @clerk/backend Performs Insufficient Verification of Data Authenticity

  • CVE-2026-107375
    HIGH

    JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort

  • CVE-2026-107384
    HIGH

    MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies