@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Upgrading @clerk/shared From 4.0.0 to 4.8.3
12 releases in betweenevery note read
- 0
- changes to make
- 2
- advisories fixed
- 13
- new
- 10
- fixes
Security
Fixes 2 advisories affecting 4.0.0
- Official Clerk JavaScript SDKs: Middleware-based route protection bypasscritical · GHSA-vqx2-fgx2-5wq9
- Clerk has an authorization bypass when combining organization, billing, or reverification checkshigh · GHSA-w24r-5266-9c3c
Release by release
- Fixed
Fix an authorization bypass in
has(),auth.protect(), and related predicates when a single call combined conditions from more than one dimension (for example,{ permission, reverification }or{ feature, permission }). A dimension that should have denied the request was treated as indeterminate and ignored by the combining logic, allowing other passing dimensions to carry the result and authorize the call when it should have failed closed.
- Fixed
- New
Add
emailAddress,phoneNumber, andusernamesupport tosignUp.update() - New
Added development runtime error when mounting
<OAuthconsent />without active session.
- New
- Fixed
Normalize URL paths in
createPathMatcherto prevent route protection bypass
- Fixed
- New
Introduce internal
<OAuthConsent />component for rendering a zero-config OAuth consent screen on an OAuth authorize redirect page.
- New
- New
Add
OAuthApplicationresource andgetConsentInfo()method for retrieving OAuth consent information, enabling custom OAuth consent flows. - New
Introduce internal
useOAuthConsent()hook for fetching OAuth consent screen metadata for the signed-in user.
- New
- New
Add support for rendering the Banned badge in the organization members list.
- Fixed
Improve types for
signIn.createandsignUp.createmethods. - Fixed
Fixed API keys "Revoke" confirmation modal being stuck disabled when using a localization.
- New
- New
API keys is now generally available.
- New
- New
Add support for seat-based billing plans in Clerk Billing.
- New
Add
EnterpriseConnectionresource - New
Allow to link external accounts to enterprise accounts via
UserProfile - Fixed
Improved error handling when creating API keys.
- Fixed
Use distinct password placeholder for sign-up forms
- New
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.