CVE-2026-42349
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedClerk 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceAuthorization bypass in Clerk JavaScript SDK where has(), auth.protect(), and related predicates incorrectly return true for combined authorization checks. Specifically, when reverification is combined with role/permission/feature/plan checks, or when billing checks (feature/plan) are combined with role/permission checks, the authorization succeeds incorrectly, allowing users to access gated actions they shouldn't satisfy.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 2.0.0, < 2.17.11>= 3.0.0, < 3.0.18>= 2.0.0, < 2.33.3>= 3.0.0, < 3.2.14>= 1.3.5, < 2.9.15>= 3.0.0, < 3.1.15>= 2.2.11, < 2.19.36>= 5.22.0, < 5.125.10>= 6.0.0, < 6.7.5>= 5.9.0, < 5.61.6>= 3.0.0, < 3.2.2>= 0.1.0, < 1.7.79>= 2.0.0, < 2.1.6CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed Clerk package versionsRun 'npm list @clerk/clerk-js @clerk/clerk-react @clerk/backend @clerk/astro @clerk/express @clerk/expo @clerk/clerk-expo' or check package.json to see the exact versions of installed Clerk packagesAffected if Any installed version falls within the affected ranges: @clerk/clerk-js < 5.125.10 or < 6.7.5; @clerk/clerk-react < 5.61.6; @clerk/backend < 2.33.3 or < 3.2.14; @clerk/astro < 2.17.11 or < 3.0.18; @clerk/express < 1.7.79 or < 2.1.6; @clerk/expo < 3.2.2; @clerk/clerk-expo < 2.19.36
-
Find has() authorization checksSearch codebase for usages of 'has(' function from Clerk SDKs, particularly in authorization-related files. Look for patterns like 'has({...})' or 'has([...])' with multiple conditionsAffected if The has() function is being used with combined conditions - specifically reverification combined with role/permission/feature/plan, or billing features combined with role/permission checks
-
Find auth.protect() authorization predicatesSearch codebase for 'auth.protect(' or 'auth().protect(' calls. Inspect the arguments passed to see if multiple authorization criteria are combined in a single callAffected if auth.protect() is called with combined predicates that mix reverification with role/permission/feature/plan, or mix billing (feature/plan) with role/permission checks
-
Review authorization logic for combined checksExamine files containing authorization middleware, permission guards, or role-based access control. Look for logic where multiple authorization conditions are ANDed together or passed as an array to has() or protect()Affected if Authorization code contains combined checks that could allow unauthorized users to pass - specifically reverification + role/permission/feature/plan combinations, or billing + role/permission combinations
A user is affected if they have a Clerk SDK version in the affected ranges AND their application uses has() or auth.protect() with combined authorization checks involving reverification plus role/permission/feature/plan, or billing features plus role/permission.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.7.792.1.62.9.15
Upgrade @clerk/clerk-js to version 5.125.10 or 6.7.5 (or later). Audit existing code using combined authorization checks (has() or auth.protect() with reverification + roles/permissions/features/plans, or billing + roles/permissions) to verify correct behavior after upgrade.
Upgrade all @clerk/* packages to versions >= 2.17.11 (v2) / 3.0.18 (v3) for astro/backend, >= 5.125.10 / 6.7.5 for clerk-js, >= 5.61.6 for clerk-react, >= 2.19.36 for clerk-expo, >= 1.7.79 / 2.1.6 for express, >= 3.2.2 for expo
- Identify all @clerk/* packages in your project by reviewing package.json dependencies
- Run 'npm list @clerk/*' or 'pnpm list @clerk/*' to see current installed versions
- For each affected package, upgrade to the minimum fixed version or the latest stable release
- Upgrade @clerk/clerk-js to version 5.125.10 (for v5) or 6.7.5 (for v6)
- Upgrade @clerk/clerk-react to version 5.61.6 or later
- Upgrade @clerk/backend to version 2.33.3 (for v2) or 3.2.14 (for v3)
- Upgrade @clerk/nextjs to the corresponding fixed version (2.17.11 for v2, 3.0.18 for v3)
- Upgrade @clerk/astro to version 2.17.11 (for v2) or 3.0.18 (for v3)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation2.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,160.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-42349 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-42349 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data