All reports
Critical

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

Affected versions

Affected versions
>= 4.7.0, < 4.29.3
Fixed version
4.29.3

Exploitation

CVE-2024-22206

Probability of exploitation in the next 30 days: 0.68%

FIRST EPSS · 2026-11-22

Description

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

Links

Credits

  • nikosdouvlis
  • SokratisVidros
  • colinclerk
  • agis
  • braden-clerk
  • brkalow