CVE-2026-42349: Clerk: Authorization bypass when combining organization, billing, or reverification checks

Published Apr 30, 2026
·
Updated

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.

Other sources

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.

MITRE

Affected Software

58 affected componentsFixes available
npm/@clerk/hono>=0.0.2<=0.1.15
0.1.16
npm/@clerk/express>=2.0.0<=2.1.5
2.1.6
npm/@clerk/express>=0.1.0<=1.7.78
1.7.79
npm/@clerk/fastify>=3.0.0<=3.1.15
3.1.16
npm/@clerk/fastify>=1.0.42<=2.6.30
2.6.31
npm/@clerk/chrome-extension>=3.0.0<=3.1.14
3.1.15
npm/@clerk/chrome-extension>=1.3.5<=2.9.14
2.9.15
npm/@clerk/tanstack-react-start>=1.0.0<=1.1.3
1.1.4
npm/@clerk/tanstack-react-start>=0.0.1<=0.29.10
0.29.11
npm/@clerk/react-router>=3.0.0<=3.1.3
3.1.4
npm/@clerk/react-router>=0.0.1<=2.4.12
2.4.13
npm/@clerk/expo>=3.0.0<=3.2.1
3.2.2
npm/@clerk/clerk-expo>=2.2.11<=2.19.35
2.19.36
npm/@clerk/nuxt>=2.0.0<=2.2.4
2.2.5
npm/@clerk/nuxt>=1.0.0<=1.13.28
1.13.29
npm/@clerk/astro>=3.0.0<=3.0.17
3.0.18
npm/@clerk/astro>=2.0.0<=2.17.10
2.17.11
npm/@clerk/vue>=2.0.0<=2.0.15
2.0.16
npm/@clerk/vue>=1.0.0<=1.17.20
1.17.21
npm/@clerk/react>=6.0.0<=6.4.2
6.4.3
npm/@clerk/clerk-react>=5.9.0<=5.61.5
5.61.6
npm/@clerk/clerk-js>=6.0.0<=6.7.4
6.7.5
npm/@clerk/clerk-js>=5.22.0<=5.125.9
5.125.10
npm/@clerk/nextjs>=7.0.0<=7.2.3
7.2.4
npm/@clerk/nextjs>=6.0.0<=6.39.2
6.39.3
npm/@clerk/backend>=3.0.0<=3.2.13
3.2.14
npm/@clerk/backend>=2.0.0<=2.33.2
2.33.3
npm/@clerk/shared>=4.0.0<=4.8.2
4.8.3
npm/@clerk/shared>=3.0.0<=3.47.4
3.47.5
Clerk Clerk\/astro Node.js>=2.0.0<2.17.11
Clerk Clerk\/astro Node.js>=3.0.0<3.0.18
Clerk Clerk\/backend Node.js>=2.0.0<2.33.3
Clerk Clerk\/backend Node.js>=3.0.0<3.2.14
Clerk Clerk\/chrome-extension Node.js>=1.3.5<2.9.15
Clerk Clerk\/chrome-extension Node.js>=3.0.0<3.1.15
Clerk Clerk\/clerk-expo Node.js>=2.2.11<2.19.36
Clerk Clerk\/clerk-js Node.js>=5.22.0<5.125.10
Clerk Clerk\/clerk-js Node.js>=6.0.0<6.7.5
Clerk Clerk\/clerk-react Node.js>=5.9.0<5.61.6
Clerk Clerk\/expo Node.js>=3.0.0<3.2.2
Clerk Clerk\/express Node.js>=0.1.0<1.7.79
Clerk Clerk\/express Node.js>=2.0.0<2.1.6
Clerk Clerk\/fastify Node.js>=1.0.42<2.6.31
Clerk Clerk\/fastify Node.js>=3.0.0<3.1.16
Clerk Clerk\/hono Node.js>=0.0.2<0.1.16
Clerk Clerk\/nextjs Node.js>=6.0.0<=6.39.3
Clerk Clerk\/nextjs Node.js>=7.0.0<7.2.4
Clerk Clerk\/nuxt Node.js>=1.0.0<1.13.29
Clerk Clerk\/nuxt Node.js>=2.0.0<2.2.5
Clerk Clerk\/react Node.js>=6.0.0<6.4.3
Clerk Clerk\/react-router Node.js>=0.0.1<2.4.13
Clerk Clerk\/react-router Node.js>=3.0.0<3.1.4
Clerk Clerk\/shared Node.js>=3.0.0<3.47.5
Clerk Clerk\/shared Node.js>=4.0.0<4.8.3
Clerk Clerk\/tanstack-react-start Node.js>=0.0.1<0.29.11
Clerk Clerk\/tanstack-react-start Node.js>=1.0.0<1.1.4
Clerk Clerk\/vue Node.js>=1.0.0<1.17.21
Clerk Clerk\/vue Node.js>=2.0.0<2.0.16

Event History

Apr 30, 2026
Advisory Published
via GitHub·06:20 PM
Data Sourced
via GitHub·06:20 PM
DescriptionWeaknessAffected Software
May 11, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-42349?

CVE-2026-42349 is classified as a security vulnerability related to improper authorization checks.

2

How do I fix CVE-2026-42349?

To fix CVE-2026-42349, update to the remedied versions of affected packages as specified in the advisories.

3

Which packages are affected by CVE-2026-42349?

CVE-2026-42349 affects several packages including @clerk/shared, @clerk/nextjs, and @clerk/backend among others.

4

What are the versions affected by CVE-2026-42349?

Versions of the affected packages include those released until specific remediated versions indicated in the vulnerability report.

5

Can CVE-2026-42349 lead to unauthorized access?

Yes, CVE-2026-42349 can allow unauthorized actions to be performed by users due to flawed authorization checks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203