Skip to main content
← All vulnerabilities
CVE-2024-51479GHSA-7GFC-8CQ8-JH5F

Authorization bypass in Next.js

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 14.2.15
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affected] `https://example.com/` * [Affected] `https://example.com/foo` * [Not affected] `https://example.com/foo/bar`. This issue is patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. There are no official workarounds for this vulnerability.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • vercel next.js

    From 9.5.5 · fixed in 14.2.15

  • nextnpm

    From 9.5.5 · fixed in 14.2.15

References 2

GitHub · vercel/next.js