Critical

@clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR)

  • Disclosed: 12.01.2024
  • Updated: 11.10.2026 10:22

Impact

Unauthorized access or privilege escalation due to a logic flaw in auth() in the App Router or getAuth() in the Pages Router.

Affected Versions

All applications that that use @clerk/nextjs versions in the range of >= 4.7.0,< 4.29.3 in a Next.js backend to authenticate API Routes, App Router, or Route handlers. Specifically, those that call auth() in the App Router or getAuth() in the Pages Router. Only the @clerk/nextjs SDK is impacted. Other SDKs, including other Javascript-based SDKs, are not impacted.

Patches

Fix included in @clerk/nextjs@4.29.3.

References

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @clerk/nextjs >= 4.7.0, < 4.29.3 4.29.3

References

CVSS score 9/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness (CWE)
CWE-284, CWE-287, CWE-639
Platform
npm
Package
@clerk/nextjs
Disclosed
12.01.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-q6w5-jg5q-47vg - CC BY 4.0

Vulnerability history: @clerk/nextjs

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
01.2024 04.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • High 2

Disclosures per year

  1. 2024: 1
  2. 2025: 1
  3. 2026: 2
  1. High · 8.1 CVE-2026-42349 >= 6.0.0, < 6.39.3, >= 7.0.0, < 7.2.4 6.39.3, 7.2.4
  2. Critical · 9.1 CVE-2026-41248 >= 5.0.0, < 5.7.6, >= 6.0.0-snapshot.vb87a27f, < 6.39.2, >= 7.0.0, < 7.2.1 5.7.6, 6.39.2, 7.2.1
  3. High · 7.5 CVE-2025-53548 >= 6.2.10, < 6.23.3 6.23.3
  4. @clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR) this entry
    Critical · 9.0 CVE-2024-22206 >= 4.7.0, < 4.29.3 4.29.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.