Improper Access Control Affecting @clerk/nextjs package, versions >=4.7.0 <4.29.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.07% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-CLERKNEXTJS-6156632
  • published 14 Jan 2024
  • disclosed 12 Jan 2024
  • credit nikosdouvlis, colinclerk, agis, braden-clerk

How to fix?

Upgrade @clerk/nextjs to version 4.29.3 or higher.

Overview

@clerk/nextjs is a Clerk SDK for NextJS

Affected versions of this package are vulnerable to Improper Access Control due to a logic flaw in the auth method in the App Router or getAuth method in the Pages Router. An attacker can gain unauthorized access or escalate privileges by exploiting the insecure direct object reference (IDOR) vulnerability.

Note

Only the @clerk/nextjs SDK is impacted. Other SDKs, including other Javascript-based SDKs, are not affected.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
9.4 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    Low
Expand this section

NVD

9.8 critical