Vulnerability library
Security checkJanuary 15, 2024

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@clerk/nextjs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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

Recommendation

Update the @clerk/nextjs package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 4.7.0, < 4.29.3
  • Patched version(s): 4.29.3

References

Could your website be exposed too?

SmartScanner can check your website for @clerk/nextjs auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR) and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 15, 2024