GitHub Advisoryadvisory · npm

GHSA-q6w5-jg5q-47vg @clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR)

CRITICAL Published 2024-01-12 Modified 2024-01-12 Official page ↗
Aliases
CVE-2024-22206
Ecosystem
npm
Packages
@clerk/nextjs
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-284, CWE-287, CWE-639
Reviewed
2024-01-12

Affected packages

• npm @clerk/nextjs: >= 4.7.0, < 4.29.3 → fixed in 4.29.3

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/[email protected]`. References • https://clerk.com/changelog/2024-01-12 • https://github.com/clerk/javascript/releases/tag/%40clerk%2Fnextjs%404.29.3

Related

Alias · CVE (1)

  • CVE-2024-22206 Clerk helps developers build user management. vulnerability

Weakness · CWE (3)

  • CWE-284 Improper Access Control weakness
  • CWE-287 Improper Authentication weakness
  • CWE-639 Authorization Bypass Through User-Controlled Key weakness

References