chore(deps): update dependency @clerk/react to v6.4.3 [security] - #528
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.1.2→6.4.3Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Clerk has an authorization bypass when combining organization, billing, or reverification checks
CVE-2026-42349 / GHSA-w24r-5266-9c3c
More information
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.
clerkMiddlewarecontinues 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()orauth.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()orauth.protect()call that combines areverificationcheck with any ofrole,permission,feature, orplan, or that combines a billing check (featureorplan) with a role or permission check.Single-condition checks are not affected and continue to fail closed as expected:
The callback form of
auth.protectis not affected unless the callback itself invokes one of the affected shapes: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/sharedis usually not imported directly in application code, but the fix lives there and reaches an app through its framework package. If developers importcreateCheckAuthorizationfrom@clerk/shareddirectly, their apps are also affected. Runnpm why @clerk/shared(or the app's package manager's equivalent) to check the installed version.Additional
auth.protect()bypassA second, related bypass lives in
@clerk/nextjs:auth.protect()silently discarded authorization params (role,permission,feature,plan,reverification) whenever the same argument object also containedunauthenticatedUrl,unauthorizedUrl, ortoken.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-jsdirectly, upgrade it to the patched version. Most apps load@clerk/clerk-jsfrom 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()orauth.protect()calls into sequential single-condition checks: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.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
clerk/javascript (@clerk/react)
v6.4.3Patch Changes
d52b311]:v6.4.2Compare Source
Patch Changes
c7b0f47,34762e8]:v6.4.1Patch Changes
b0b6675]:v6.4.0Minor Changes
Introduce internal
<OAuthConsent />component for rendering a zero-config OAuth consent screen on an OAuth authorize redirect page. (#8289) by @wobsorianoUsage example:
Patch Changes
dc2de16]:v6.3.0Compare Source
Minor Changes
Add
OAuthApplicationresource andgetConsentInfo()method for retrieving OAuth consent information, enabling custom OAuth consent flows. (#8275) by @jfosheeIntroduce internal
useOAuthConsent()hook for fetching OAuth consent screen metadata for the signed-in user. (#8286) by @jfosheePatch Changes
3fd586d,f9ff9e9]:v6.2.1Compare Source
Patch Changes
fdac10e,4e3cb0a,aa32bbc]:v6.2.0Compare Source
Minor Changes
<APIKeys />componentuseAPIKeys()hookPatch Changes
2c06a5f]:v6.1.4Compare Source
Patch Changes
9a00a1c,00715a6,b8c73d3,1827b50,7707a31]:v6.1.3Compare Source
Patch Changes
signOutOptionsprop on<SignOutButton />in favor of top-levelredirectUrlandsessionIdprops. ThesignOutOptionsprop still works but now emits a deprecation warning. (#8147) by @jacekradkoConfiguration
📅 Schedule: (in timezone America/Denver)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.