GHSA-w24r-5266-9c3c

Suggest an improvement
Source
https://github.com/advisories/GHSA-w24r-5266-9c3c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w24r-5266-9c3c
Aliases
  • CVE-2026-42349
Published
2026-04-30T18:20:02Z
Modified
2026-05-13T14:19:33.411017Z
Severity
  • 7.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Clerk has an authorization bypass when combining organization, billing, or reverification checks
Details

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.

Database specific
{
    "github_reviewed": true,
    "severity": "HIGH",
    "nvd_published_at": "2026-05-11T17:16:33Z",
    "cwe_ids": [
        "CWE-754",
        "CWE-863"
    ],
    "github_reviewed_at": "2026-04-30T18:20:02Z"
}
References

Affected packages

npm
@clerk/shared

Package

Name
@clerk/shared
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/shared

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.47.5

Database specific

last_known_affected_version_range
"<= 3.47.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/shared

Package

Name
@clerk/shared
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/shared

Affected ranges

Type
SEMVER
Events
Introduced
4.0.0
Fixed
4.8.3

Database specific

last_known_affected_version_range
"<= 4.8.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/backend

Package

Name
@clerk/backend
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/backend

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.33.3

Database specific

last_known_affected_version_range
"<= 2.33.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/backend

Package

Name
@clerk/backend
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/backend

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.2.14

Database specific

last_known_affected_version_range
"<= 3.2.13"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/nextjs

Package

Name
@clerk/nextjs
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/nextjs

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.39.3

Database specific

last_known_affected_version_range
"<= 6.39.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/nextjs

Package

Name
@clerk/nextjs
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/nextjs

Affected ranges

Type
SEMVER
Events
Introduced
7.0.0
Fixed
7.2.4

Database specific

last_known_affected_version_range
"<= 7.2.3"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/clerk-js

Package

Name
@clerk/clerk-js
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/clerk-js

Affected ranges

Type
SEMVER
Events
Introduced
5.22.0
Fixed
5.125.10

Database specific

last_known_affected_version_range
"<= 5.125.9"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/clerk-js

Package

Name
@clerk/clerk-js
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/clerk-js

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.7.5

Database specific

last_known_affected_version_range
"<= 6.7.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/clerk-react

Package

Name
@clerk/clerk-react
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/clerk-react

Affected ranges

Type
SEMVER
Events
Introduced
5.9.0
Fixed
5.61.6

Database specific

last_known_affected_version_range
"<= 5.61.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/react

Package

Name
@clerk/react
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/react

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.4.3

Database specific

last_known_affected_version_range
"<= 6.4.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/vue

Package

Name
@clerk/vue
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/vue

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0
Fixed
1.17.21

Database specific

last_known_affected_version_range
"<= 1.17.20"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/vue

Package

Name
@clerk/vue
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/vue

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.0.16

Database specific

last_known_affected_version_range
"<= 2.0.15"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/astro

Package

Name
@clerk/astro
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/astro

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.17.11

Database specific

last_known_affected_version_range
"<= 2.17.10"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/astro

Package

Name
@clerk/astro
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/astro

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.0.18

Database specific

last_known_affected_version_range
"<= 3.0.17"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/nuxt

Package

Name
@clerk/nuxt
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/nuxt

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0
Fixed
1.13.29

Database specific

last_known_affected_version_range
"<= 1.13.28"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/nuxt

Package

Name
@clerk/nuxt
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/nuxt

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.2.5

Database specific

last_known_affected_version_range
"<= 2.2.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/clerk-expo

Package

Name
@clerk/clerk-expo
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/clerk-expo

Affected ranges

Type
SEMVER
Events
Introduced
2.2.11
Fixed
2.19.36

Database specific

last_known_affected_version_range
"<= 2.19.35"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/expo

Package

Name
@clerk/expo
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/expo

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.2.2

Database specific

last_known_affected_version_range
"<= 3.2.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/react-router

Package

Name
@clerk/react-router
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/react-router

Affected ranges

Type
SEMVER
Events
Introduced
0.0.1
Fixed
2.4.13

Database specific

last_known_affected_version_range
"<= 2.4.12"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/react-router

Package

Name
@clerk/react-router
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/react-router

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.1.4

Database specific

last_known_affected_version_range
"<= 3.1.3"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/tanstack-react-start

Package

Name
@clerk/tanstack-react-start
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/tanstack-react-start

Affected ranges

Type
SEMVER
Events
Introduced
0.0.1
Fixed
0.29.11

Database specific

last_known_affected_version_range
"<= 0.29.10"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/tanstack-react-start

Package

Name
@clerk/tanstack-react-start
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/tanstack-react-start

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0
Fixed
1.1.4

Database specific

last_known_affected_version_range
"<= 1.1.3"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/chrome-extension

Package

Name
@clerk/chrome-extension
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/chrome-extension

Affected ranges

Type
SEMVER
Events
Introduced
1.3.5
Fixed
2.9.15

Database specific

last_known_affected_version_range
"<= 2.9.14"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/chrome-extension

Package

Name
@clerk/chrome-extension
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/chrome-extension

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.1.15

Database specific

last_known_affected_version_range
"<= 3.1.14"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/fastify

Package

Name
@clerk/fastify
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/fastify

Affected ranges

Type
SEMVER
Events
Introduced
1.0.42
Fixed
2.6.31

Database specific

last_known_affected_version_range
"<= 2.6.30"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/fastify

Package

Name
@clerk/fastify
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/fastify

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.1.16

Database specific

last_known_affected_version_range
"<= 3.1.15"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/express

Package

Name
@clerk/express
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/express

Affected ranges

Type
SEMVER
Events
Introduced
0.1.0
Fixed
1.7.79

Database specific

last_known_affected_version_range
"<= 1.7.78"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/express

Package

Name
@clerk/express
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/express

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.1.6

Database specific

last_known_affected_version_range
"<= 2.1.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"
@clerk/hono

Package

Name
@clerk/hono
View open source insights on deps.dev
Purl
pkg:npm/%40clerk/hono

Affected ranges

Type
SEMVER
Events
Introduced
0.0.2
Fixed
0.1.16

Database specific

last_known_affected_version_range
"<= 0.1.15"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w24r-5266-9c3c/GHSA-w24r-5266-9c3c.json"