@clerk/clerk-js
6.44.0 · 17 Nov 2026MIT1.5M / weekRepositoryHomepagenpmAtom feed
5.128.3 is the newest release of 5.x.
In short
1 new6 fixed3 internal
Security
2 advisories affect 5.57.1; 5.125.10 fixes them
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 5.125.10
- ModerateClerk-js vulnerable to bypass of OAuth authentication flow by manipulating request at OTP verification stageGHSA-3mm3-wfpv-q85g · 20 Nov 2025Fixed in 5.89.0
Release note
Patch Changes
Fix issue where unverified field weren't showing up when ToS was enabled
Lazy-loads experimental components within
UserProfile, preventing unnecessary code from loading.Fix an edge case where
window.Clerkis re-assigned if the Clerk script is injected multiple times.Export
isReverificationCancelledErrorerror helperIntroduce
__experimental_nextTaskmethod for navigating to next tasks on a after-auth flowUpdate the resiliency logic for failed client attempts to allow the creation of a dev browser.
This introducing changes to
useReverification, the changes include removing the array and returning the fetcher directly and also the dropping the optionsthrowOnCancelandonCancelin favour of always throwing the cancellation error.import { useReverification } from '@clerk/clerk-react'; import { isReverificationCancelledError } from '@clerk/clerk-react/error'; type MyData = { balance: number; }; export function MyButton() { const fetchMyData = () => fetch('/api/balance').then(res => res.json() as Promise<MyData>); const enhancedFetcher = useReverification(fetchMyData); const handleClick = async () => { try { const myData = await enhancedFetcher(); // ^ is typed as `MyData` } catch (e) { // Handle error returned from the fetcher here // You can also handle cancellation with the following if (isReverificationCancelledError(err)) { // Handle the cancellation error here } } }; return <button onClick={handleClick}>Update User</button>; }These changes are also adding a new handler in options called
onNeedsReverification, which can be used to create a custom UI
to handle re-verification flow. When the handler is passed the default UI our AIO components provide will not be triggered so you will have to create and handle the re-verification process.import { useReverification } from '@clerk/clerk-react'; import { isReverificationCancelledError } from '@clerk/clerk-react/error'; type MyData = { balance: number; }; export function MyButton() { const fetchMyData = () => fetch('/api/balance').then(res => res.json() as Promise<MyData>); const enhancedFetcher = useReverification(fetchMyData, { onNeedsReverification: ({ complete, cancel, level }) => { // e.g open a modal here and handle the re-verification flow }, }); const handleClick = async () => { try { const myData = await enhancedFetcher(); // ^ is typed as `MyData` } catch (e) { // Handle error returned from the fetcher here // You can also handle cancellation with the following if (isReverificationCancelledError(err)) { // Handle the cancellation error here } } }; return <button onClick={handleClick}>Update User</button>; }
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.